From c50b8275d6bae3cf94c190ea87c877206162ebae Mon Sep 17 00:00:00 2001 From: wackyideas Date: Mon, 29 Jan 2024 21:11:58 +0100 Subject: [PATCH] Fix SevenStart bug regarding wrong favorites view height --- .../contents/ui/MenuRepresentation.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plasma/Plasma_Widgets/User/io.gitgud.wackyideas.SevenStart/contents/ui/MenuRepresentation.qml b/Plasma/Plasma_Widgets/User/io.gitgud.wackyideas.SevenStart/contents/ui/MenuRepresentation.qml index f68d1d9..45a3962 100755 --- a/Plasma/Plasma_Widgets/User/io.gitgud.wackyideas.SevenStart/contents/ui/MenuRepresentation.qml +++ b/Plasma/Plasma_Widgets/User/io.gitgud.wackyideas.SevenStart/contents/ui/MenuRepresentation.qml @@ -185,7 +185,7 @@ PlasmaCore.Dialog { Layout.minimumWidth: root.cellWidth + root.cellWidthSide Layout.maximumWidth: root.cellWidth + root.cellWidthSide - property int mainPanelHeight: ((root.cellHeight+units.smallSpacing/2) * (plasmoid.configuration.numberRows-1)) + searchBackground.height + (allButtonsArea.height) + (units.smallSpacing * (15 - plasmoid.configuration.numberRows)) + units.smallSpacing / 2 + 1 + property int mainPanelHeight: ((root.cellHeight+units.smallSpacing/2) * (plasmoid.configuration.numberRows-1)) + searchBackground.height + (allButtonsArea.height) + (units.smallSpacing * (15 - plasmoid.configuration.numberRows)) + units.smallSpacing / 2 + 1 - (plasmoid.configuration.showRecentsView ? 0 : units.smallSpacing*2) property int sidePanelHeight: backgroundBorderLine.height + searchBackground.height + columnItems.height + (compositingEnabled ? units.iconSizes.huge / 2 + units.smallSpacing : nonCompositingIcon.height + units.smallSpacing); property bool sidePanelOverflow: mainPanelHeight <= sidePanel; @@ -411,7 +411,7 @@ PlasmaCore.Dialog { width: root.cellWidth height: (plasmoid.configuration.showRecentsView ? (((root.cellHeight-2) * (faves.getFavoritesCount() > 9 ? 9 : faves.getFavoritesCount()))/* - units.smallSpacing * 2*/) : - ((root.cellHeight) * plasmoid.configuration.numberRows - units.smallSpacing/2 - allProgramsButton.height*2 - allProgramsSeparator.height)) - units.smallSpacing/2 + ((root.cellHeight-2) * (plasmoid.configuration.numberRows+1) + units.smallSpacing*2+1 - allProgramsButton.height*2 - allProgramsSeparator.height)) - units.smallSpacing/2 visible: !showingAllPrograms && !searching z: 8