Bug 495807

Summary: Tool Options Docker UI goes haywire if in Left Sidebar set to Minimum Width if Docker has scrollbar
Product: [Applications] krita Reporter: i <kde.tmapu>
Component: DockersAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: 5.2.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screen Recording of

Description i 2024-11-05 01:46:28 UTC
Created attachment 175524 [details]
Screen Recording of

SUMMARY
When resizing the Left Sidebar containing "Tool Options" to its minimum width, if the tool options docker is short enough (vertically) to require a scrollbar, the elements within can go haywire and move around erratically. It seems this happens only with the Selection tools, since they use the "Name of option with icons beside it" UI, and it doesn't seem to happen in the Right sidebar.

It seems like it tries to move the options below the subtitle, then moves back, repeatedly, every frame.

STEPS TO REPRODUCE
1. Dock the Tool Options docker to the Sidebar
2. Select the Magnetic Selection Tool
3. Resize Sidebar to its minimum width

OBSERVED RESULT
UI flashes between two states, unable to decide what to display

EXPECTED RESULT
UI rearranges to fit the narrow width as best as it can.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.11.5-300.fc41.x86_64 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Video attached
Comment 1 Halla Rempt 2024-11-05 14:02:01 UTC
I'm sorry, but this is a bug in Qt, and not something we can fix :-( And since Qt doesn't really do any maintenance of QDock*, it's unlikely this will be fixed. For the future we're looking into different dock panel managers.