From e4f1cb65450624bd662cca8f1087229cacda512b Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 11 Dec 2019 07:54:13 -0400 Subject: [PATCH] BoxPopup: more reliable implicitWidth (margins) --- src/qml/Popups/BoxPopup.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qml/Popups/BoxPopup.qml b/src/qml/Popups/BoxPopup.qml index 42282917..5473d7df 100644 --- a/src/qml/Popups/BoxPopup.qml +++ b/src/qml/Popups/BoxPopup.qml @@ -27,7 +27,8 @@ HPopup { id: box clickButtonOnEnter: "ok" implicitWidth: Math.min( - window.width - popup.margins, theme.controls.popup.defaultWidth, + window.width - popup.leftMargin - popup.rightMargin, + theme.controls.popup.defaultWidth, ) buttonModel: [