Skip to content

[kcm/kwinrules] Fix first item position on property list

Ismael Asensio requested to merge work/fix_firstItem into Plasma/5.19

The first time the list in Add properties is shown, the position of the first delegate is miscalculated as (0, 0) and gets hidden behind the section header. (https://bugs.kde.org/show_bug.cgi?id=422289)

It only re-positions when the delegate is destroyed and re-created, for example, when setting and deleting a filter text.

This delays the overlayModel filtering until the list is first shown, which makes the delegate position correctly. delegate_wrong

delegate_ok

BUG: 421583 FIXED-IN: 5.19

Edited by Ismael Asensio

Merge request reports