SUMMARY When I edit the window rules list in systemsettings, it adds some empty space to the top under some conditions. STEPS TO REPRODUCE 1. Have some window rules configured 2. drag the top rule to the bottom of the list. Important: Bottom means the bottom of the container space, not the last entry in list. OBSERVED RESULT The rules list has some empty space on the top and the last rule is aligned to the bottom of the container. EXPECTED RESULT The first rule is aligned to the top of the container, that empty space is on the bottom. Operating System: Gentoo Linux KDE Plasma Version: 5.20.4 KDE Frameworks Version: 5.77.0 Qt Version: 5.15.2 Kernel Version: 5.9.14-gentoo OS Type: 64-bit Processors: 8 × Intel® Core™ i7-3770 CPU @ 3.40GHz Memory: 30.9 GiB of RAM Graphics Processor: Mesa DRI Intel® HD Graphics 4000
Created attachment 134605 [details] video showing the behavior
Good catch! Reassigning it to Kirigami, since it can be reproduced in a test case. It only happens when the content height is smaller than the view height, so I'm guessing it's hitting some rearrange code for the scrolling case.
Created attachment 134613 [details] QML test case
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kirigami/-/merge_requests/202
Git commit ccb063b0116639345bf7dcd285861a86f76973e1 by Ismael Asensio. Committed on 06/01/2021 at 12:35. Pushed by iasensio into branch 'master'. [controls/ListItemDragHandle] Fix wrong arrangement on no-scrolling case Disable the scroll threshold when the list content does not need scrolling (the content is shorter than the list view). This fixes the items being wrongly re-arranged when the item is dragged near the list view bottom. FIXED-IN: 5.78 M +1 -1 src/controls/ListItemDragHandle.qml https://invent.kde.org/frameworks/kirigami/commit/ccb063b0116639345bf7dcd285861a86f76973e1