From bf067b7e7cb54de283290a3c6d43e66c9337b5aa Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Mon, 22 May 2023 06:11:15 +0200 Subject: [PATCH] Fixing object edition dialog height --- .../ObjectLists/Editor/Dialog.qml | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/Dialog.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/Dialog.qml index eff350c..8c5fa9a 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/Dialog.qml +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/ObjectLists/Editor/Dialog.qml @@ -58,7 +58,8 @@ Popup.BaseDialog { title: "LogarithmPlotter" width: 350 - minimumHeight: 400 + minimumHeight: Math.max(450,dlgProperties.height + margin*4 + 30) + maximumHeight: minimumHeight // Disable closing on return/enter, causing issues with autocomplete. // onActionChosen: if(action.key == Qt.Key_Enter || action.key == Qt.Key_Return) action.accepted = false @@ -70,25 +71,23 @@ Popup.BaseDialog { right: parent.right; topMargin: margin; leftMargin: margin; - bottomMargin: margin; + bottomMargin: margin + 30; rightMargin: margin; } - Label { - id: dlgTitle - anchors.left: parent.left - anchors.top: parent.top - verticalAlignment: TextInput.AlignVCenter - text: qsTr("Edit properties of %1 %2").arg(Objects.types[objEditor.objType].displayType()).arg(objEditor.obj.name) - font.pixelSize: 20 - color: sysPalette.windowText - } - Column { id: dlgProperties anchors.top: dlgTitle.bottom width: objEditor.width - 20 spacing: 10 + + Label { + id: dlgTitle + verticalAlignment: TextInput.AlignVCenter + text: qsTr("Edit properties of %1 %2").arg(Objects.types[objEditor.objType].displayType()).arg(objEditor.obj.name) + font.pixelSize: 20 + color: sysPalette.windowText + } Native.MessageDialog { id: invalidNameDialog