Bug 468204 - Combobox of newly added rule is not always at the same height as the item in the list
Summary: Combobox of newly added rule is not always at the same height as the item in ...
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_flatpak (other bugs)
Version First Reported In: 5.27.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-06 12:35 UTC by postix
Modified: 2025-09-26 14:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot (130.68 KB, image/png)
2023-04-06 12:35 UTC, postix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2023-04-06 12:35:43 UTC
Created attachment 157898 [details]
Screenshot

SUMMARY

Sometimes when adding a new rule, the button on the right is not on the same height as the rest as of the line. Please see the screenshot. Is this a Kirigami bug? 

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230403
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Graphics Platform: Wayland
Comment 1 postix 2023-04-06 12:37:52 UTC
Also the category below (Advanced Permissions) vanishes and the combobox of the newly created rule only contains the item "read/write".
Comment 2 postix 2023-04-06 12:40:13 UTC
And a last remark: When this happens and when adding another new rule, this new rule won't show up. Everything gets fixed by itself after applying the changes and re-opening the permission page of this particular app.
Comment 3 postix 2023-04-06 12:42:39 UTC
When adding a new rule, journalctl logs the following:
```
systemsettings[3836]: file:///usr/share/kpackage/kcms/kcm_flatpak/contents/ui/permissions.qml:140:19: QML BasicListItem: Binding loop detected for property "height"
systemsettings[3836]: file:///usr/lib64/qt5/qml/org/kde/kirigami.2/BasicListItem.qml:279:18: QML QQuickItem*: Binding loop detected for property "implicitWidth"
```
Comment 4 ratijas 2023-04-06 12:43:36 UTC
Height of rows is a bug in QtQuick/ListView, which is very unreliable when it comes to positioning dynamically sized delegates. I tried fixing them as hard as I could, but still it does not always work.

> Also the category below (Advanced Permissions) vanishes and the combobox of the newly created rule only contains the item "read/write".

That is part of model using wrong signal dataChanged instead of beginInsertRows/endInsertRows. Gonna be fixed with the rewrite in https://invent.kde.org/plasma/flatpak-kcm/-/merge_requests/91
Comment 5 David Edmundson 2025-09-26 14:44:06 UTC
I cannot reproduce an issue on Plasma 6, please reopen if you still see an issue here.