BoxPopup: more reliable implicitWidth (margins)

This commit is contained in:
miruka 2019-12-11 07:54:13 -04:00
parent 1c7015bbd2
commit e4f1cb6545

View File

@ -27,7 +27,8 @@ HPopup {
id: box id: box
clickButtonOnEnter: "ok" clickButtonOnEnter: "ok"
implicitWidth: Math.min( implicitWidth: Math.min(
window.width - popup.margins, theme.controls.popup.defaultWidth, window.width - popup.leftMargin - popup.rightMargin,
theme.controls.popup.defaultWidth,
) )
buttonModel: [ buttonModel: [