[plasma/union/Plasma/6.7] src/output/qtquick/style: output/quick: Set Menu margins to 0
Arjen Hiemstra <[email protected]> Wed, 5 Aug 2026 09:45:15 +0000 (UTC)
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit c1452cc6359981d6d56f5b4baa92c315044ac7b7 by Arjen Hiemstra. Committed on 05/08/2026 at 09:40. Pushed by ahiemstra into branch 'Plasma/6.7'. output/quick: Set Menu margins to 0 Otherwise the menu will not be moved to make sure things aren't cut off. This incredibly unintuitive behaviour is apparently documented but makes 0 sense to me. BUG: 520831 Fixes #192 (cherry picked from commit 6bba4a323c62b19103e37af874ec0fee77020226) Co-authored-by: Arjen Hiemstra <[email protected]> M +4 -0 src/output/qtquick/style/Menu.qml https://invent.kde.org/plasma/union/-/commit/c1452cc6359981d6d56f5b4baa92c315044ac7b7 diff --git a/src/output/qtquick/style/Menu.qml b/src/output/qtquick/style/Menu.qml index d858c040..8f30c1a3 100644 --- a/src/output/qtquick/style/Menu.qml +++ b/src/output/qtquick/style/Menu.qml @@ -31,6 +31,10 @@ T.Menu { topInset: Union.Style.properties.layout.inset.top bottomInset: Union.Style.properties.layout.inset.bottom + // Margins *must* be set to a non-negative value otherwise the popup is not + // positioned correctly. + margins: 0 + delegate: MenuItem { } contentItem: ListView {