From 12701b7dac75bc6764e2efe88d6de081a78f1945 Mon Sep 17 00:00:00 2001 From: Joey de l'Arago Date: Fri, 6 Jan 2023 13:25:57 +0100 Subject: [PATCH] Hacky fix for mouseArea bug. CURA-9522 --- resources/qml/Menus/MaterialBrandSubMenu.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/qml/Menus/MaterialBrandSubMenu.qml b/resources/qml/Menus/MaterialBrandSubMenu.qml index bc02e79cdb..318afd9c60 100644 --- a/resources/qml/Menus/MaterialBrandSubMenu.qml +++ b/resources/qml/Menus/MaterialBrandSubMenu.qml @@ -12,11 +12,13 @@ Popup { id: materialBrandSubMenu - bottomPadding: UM.Theme.getSize("thin_margin").height + // There is a bug where hovering the bottom half of the last element causes the popup to close. + // Undo this commit if you find a fix. + bottomPadding: -UM.Theme.getSize("thin_margin").height topPadding: UM.Theme.getSize("thin_margin").height implicitWidth: scrollViewContent.width + scrollbar.width + leftPadding + rightPadding - implicitHeight: scrollViewContent.height + bottomPadding + topPadding + implicitHeight: scrollViewContent.height + bottomPadding + topPadding + (2 * UM.Theme.getSize("thin_margin").height) // offset position relative to the parent property int implicitX: parent.width - UM.Theme.getSize("default_lining").width