Skip to content
Snippets Groups Projects
Commit 2c592c58 authored by Stefano Bonicatti's avatar Stefano Bonicatti
Browse files

Fix preset docker flickering and slowdown

When vertically resizing the preset docker and the vertical
scrollbar appears, the preset tiles are resized to fit the
viewport with their width, but this also reduces their height
not needing the scrollbar anymore.
The scrollbar disappearing lets the viewport expand and so the tiles,
in height, making the scrollbar needed again and this loops forever
generating a considerable slowdown.
The fix consists in always showing the vertical scrollbar so that no
resizing happens due to them.

To avoid unnecessary work and event spam we check in
KoResourceItemChooser::setSynced function if the value passed
corresponds to its current status already.

CCBUG: 344968
REVIEW: 124042

Thanks to mmolch for the initial patch.
parent 003f921c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment