Bug 153521 - Styles Preview in the Tabbed UI gets stuck while scrolling (non gtk3)
Summary: Styles Preview in the Tabbed UI gets stuck while scrolling (non gtk3)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.0.0 alpha1+
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: implementationError
Depends on:
Blocks: Notebookbar-Tabbed Styles-Preview
  Show dependency treegraph
 
Reported: 2023-02-10 13:01 UTC by Rafael Lima
Modified: 2023-10-04 10:07 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Video showing the problem (47.46 KB, video/mp4)
2023-02-10 13:01 UTC, Rafael Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Lima 2023-02-10 13:01:38 UTC
Created attachment 185284 [details]
Video showing the problem

When using kf5 and gen backends, scrolling the Styles Preview widget in the Tabbed UI will make the scrollbar get stuck in the middle.

See attached video for more details.

In gtk3 the scrolling happens beautifully.

System info

Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: 50(Build:3)
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.5.0~rc3-0ubuntu0.22.10.1~lo1
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2023-02-24 16:13:36 UTC
I can't drag the scrollbar thumb whatsoever with kf5 and qt5 VCLs, except after using the arrows (then I can scroll back up by grabbing the thumb):

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6d9b9d1228cdee69e767833202442a1fed6174a6
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded


Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6d9b9d1228cdee69e767833202442a1fed6174a6
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+wayland)
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6d9b9d1228cdee69e767833202442a1fed6174a6
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: qt5 (qfont+xcb)
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6d9b9d1228cdee69e767833202442a1fed6174a6
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: qt5 (qfont+wayland)
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

With gen VCL, the thumb stops in the middle of the scrollbar (but shows the end of the style list):

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

I can see the issue since the style widget was made scrollable in 7.2:

Version: 7.2.7.2 / LibreOffice Community
Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

No problem with gtk3. No problem on Windows, so sticking to Linux for now.
Comment 2 Rafael Lima 2023-07-17 14:19:53 UTC
It seems the situation is a bit worse in current master. As per today, you can't scroll anything in the styles preview. It is as if there's nothing to scroll.

System info:

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
Comment 3 Stéphane Guillou (stragu) 2023-10-04 10:02:11 UTC
(In reply to Rafael Lima from comment #2)
> It seems the situation is a bit worse in current master. As per today, you
> can't scroll anything in the styles preview. It is as if there's nothing to
> scroll.

Could be the same cause as the 7.6 regression in bug 157587.
Comment 4 Stéphane Guillou (stragu) 2023-10-04 10:07:55 UTC
kf5 behaviour is reproduced in 7.2.0.0.alpha1.
gen getting stuck in the middle seems to have started later on, but scrolling was already broken in that version because dragging the thumb back to the the top would not refresh the view and still display the bottom styles.
So I'm keeping it as "implementation error".