Bug 156379 - Writer file properties: word count lacks space to display 4 and more digits
Summary: Writer file properties: word count lacks space to display 4 and more digits
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.5.2 release
Hardware: All All
: medium trivial
Assignee: Rafael Lima
URL:
Whiteboard: target:24.2.0
Keywords:
: 158581 (view as bug list)
Depends on:
Blocks: Word-Count
  Show dependency treegraph
 
Reported: 2023-07-19 13:31 UTC by HTK300
Modified: 2023-12-08 13:20 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
screenshot properties (24.68 KB, image/jpeg)
2023-07-19 13:31 UTC, HTK300
Details

Note You need to log in before you can comment on or make changes to this bug.
Description HTK300 2023-07-19 13:31:17 UTC
Description:
for writer doc the space to display the number of lines in the properties pop up isn't sufficient. Half of the right digit is not displayed anymore

Steps to Reproduce:
1. have a writer document open that contains as many letters to over 1000 lines
2. click on File > properties
3. see the pop-up screed half of the last digit to the right is almost not visible


Actual Results:
soon I will pass 1000 lines in my docs, please increase the visual space to display the result of the line count

Expected Results:
soon I will pass 1000 lines in my docs, please increase the visual space to display the result of the line count


Reproducible: Always


User Profile Reset: No

Additional Info:
nothing
Comment 1 HTK300 2023-07-19 13:31:47 UTC
Created attachment 188468 [details]
screenshot properties
Comment 2 Rafael Lima 2023-07-19 14:36:16 UTC
I can reproduce this in

Version: 7.5.4.2 (X86_64) / LibreOffice Community
Build ID: 50(Build:2)
CPU threads: 16; OS: Linux 6.2; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 4:7.5.4-0ubuntu0.23.04.1
Calc: threaded

If the file has more than a thousand lines, there's not enough width for the line count value.

Setting to NEW
Comment 3 Julien Nabet 2023-07-19 14:53:17 UTC
On pc Debian x86-64 with master sources updated today + gen rendering I could reproduce this.

Remark: I don't reproduce this with gtk3 rendering.

code pointer: sw/uiconfig/swriter/ui/statisticsinfopage.ui

I thought about putting back hexpand in ui file but no better so no idea but I suppose someone will have one.
Comment 4 Rafael Lima 2023-07-19 15:03:03 UTC
(In reply to Julien Nabet from comment #3)
> Remark: I don't reproduce this with gtk3 rendering.

Seems to be a backend dependent issue.

Repro with kf5

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a4af5432753408c4eea8a8d56c2f48202160c5fe
CPU threads: 16; OS: Linux 6.2; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL threaded

Repro with gen

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a4af5432753408c4eea8a8d56c2f48202160c5fe
CPU threads: 16; OS: Linux 6.2; UI render: default; VCL: x11
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL threaded

NOT repro with gtk3

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a4af5432753408c4eea8a8d56c2f48202160c5fe
CPU threads: 16; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL threaded
Comment 5 Tex2002ans 2023-12-05 23:49:49 UTC
I can reproduce in Windows 10:

Version: 7.6.3.2 (X86_64) / LibreOffice Community
Build ID: 29d686fea9f6705b262d369fede658f824154cc0
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

- - -

Open large document (with many lines):

- File > Properties.
- Go to "Statistics" tab.
- "Lines" count is cut off after ~3.5 digits.
Comment 6 Rafael Lima 2023-12-07 20:41:48 UTC
Proposed patch here:
https://gerrit.libreoffice.org/c/core/+/160367
Comment 7 Commit Notification 2023-12-08 09:40:38 UTC
Rafael Lima committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/99f91d64c57f4e2bfe47fe4d0870b92c269fa875

tdf#156379 Fix Line count width in the Properties dialog

It will be available in 24.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 8 Commit Notification 2023-12-08 11:19:55 UTC
Caolán McNamara committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/55124c3dbde79ce35e0c90c0d8271117f59b93ce

Related: tdf#156379 better align the doc statistics selectable labels

It will be available in 24.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 9 Rafael Lima 2023-12-08 13:15:43 UTC
*** Bug 158581 has been marked as a duplicate of this bug. ***