Bug 156567 - UI: Sidebar plain text warning appears in one line with GTK3 backend
Summary: UI: Sidebar plain text warning appears in one line with GTK3 backend
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.6.0.1 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks: GTK3 Accessibility-Check
  Show dependency treegraph
 
Reported: 2023-08-01 17:11 UTC by Gabor Kelemen (allotropia)
Modified: 2023-08-25 20:32 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Writer (10.84 KB, application/vnd.oasis.opendocument.text)
2023-08-01 17:11 UTC, Gabor Kelemen (allotropia)
Details
Screenshot of the too long warning message (63.95 KB, image/png)
2023-08-01 17:11 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2023-08-01 17:11:23 UTC
Created attachment 188699 [details]
Example file from Writer

This is similar to bug 156137
Attached example file has a single long hyperlink and the accessibility sidebar gives a long plain text warning "Hyperlink text is the same as the link address “https://bugs.documentfoundation.org/show_bug.cgi?id=154929”." 
This is broken into multiple lines in the sidebar when the attached file is opened, but if the sidebar is resized, this becomes a single line, using up a large part of the window area for the sidebar.

1. Open attached file
2. Open the accessibility sidebar
3. Resize the sidebar
-> full warning text is visible in one line, sidebar takes up large part of the window area.
This is happening only with GTK3 backend, gen and QT5 make the end of the warning text disappear under the sidebar deck chooser buttons.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d0c12b155009599cc31f8eac353bb679db0afbec
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: hu-HU
Calc: threaded
Comment 1 Gabor Kelemen (allotropia) 2023-08-01 17:11:57 UTC
Created attachment 188700 [details]
Screenshot of the too long warning message
Comment 2 Stéphane Guillou (stragu) 2023-08-02 09:55:42 UTC
Reproduced in:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 47ca3f1f762352b488d58b3bf23d5776576f1cca
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Same in 7.6.0.1.

At fileopen, text is wrapped.
As soon as the sidebar is resized, it pops to a width large enough to show the whole string, which does not wrap anymore, and the sidebar takes too much space and width can't be reduced.

(In gen, kf5 and qt5 VCLs, the sidebar width can be reduced, but hides parts of the text instead of wrapping it.)
Comment 3 Gabor Kelemen (allotropia) 2023-08-25 20:32:23 UTC
Recently this has changed, because Balazs fixed all similar cases: now all similar warnings are clickable, which makes this issue disappear.
So unless someone adds a new check but without the clickable link feature - we are good.