Bug 156567

Summary: UI: Sidebar plain text warning appears in one line with GTK3 backend
Product: LibreOffice Reporter: Gabor Kelemen (allotropia) <kelemeng>
Component: UIAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: stephane.guillou
Priority: medium Keywords: accessibility
Version: 7.6.0.1 rc   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=156137
https://bugs.documentfoundation.org/show_bug.cgi?id=156568
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103182, 154929    
Attachments: Example file from Writer
Screenshot of the too long warning message

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.