From 97a3e10c809cdcbbf097895f6911487ce356a436 Mon Sep 17 00:00:00 2001 From: Chris Holland Date: Tue, 19 Apr 2022 12:54:55 -0400 Subject: [PATCH] Force a minimum popup height of 5 sidebar buttons (Issue #125) --- package/contents/ui/AppletConfig.qml | 1 + package/contents/ui/Main.qml | 1 + 2 files changed, 2 insertions(+) diff --git a/package/contents/ui/AppletConfig.qml b/package/contents/ui/AppletConfig.qml index 00648dd7..c73075ed 100644 --- a/package/contents/ui/AppletConfig.qml +++ b/package/contents/ui/AppletConfig.qml @@ -19,6 +19,7 @@ Item { readonly property int sidebarPopupButtonSize: plasmoid.configuration.sidebarPopupButtonSize * PlasmaCore.Units.devicePixelRatio readonly property int appListWidth: plasmoid.configuration.appListWidth * PlasmaCore.Units.devicePixelRatio readonly property int tileEditorMinWidth: Math.max(350, 350 * PlasmaCore.Units.devicePixelRatio) + readonly property int minimumHeight: flatButtonSize * 5 // Issue #125 property bool showSearch: false property bool isEditingTile: false diff --git a/package/contents/ui/Main.qml b/package/contents/ui/Main.qml index 5ae731fa..dcd17775 100644 --- a/package/contents/ui/Main.qml +++ b/package/contents/ui/Main.qml @@ -140,6 +140,7 @@ Item { anchors.fill: parent } Layout.minimumWidth: config.leftSectionWidth + Layout.minimumHeight: config.minimumHeight Layout.preferredWidth: config.popupWidth Layout.preferredHeight: config.popupHeight