From 0dda27094edfabf9e588a15c658a6b29b7115f9f Mon Sep 17 00:00:00 2001 From: "c.lamboo" Date: Thu, 24 Mar 2022 10:31:10 +0100 Subject: [PATCH] Fix textfield height for entering project name in DL from eccb @fvrmr --- .../DigitalLibrary/resources/qml/SaveProjectFilesPage.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/DigitalLibrary/resources/qml/SaveProjectFilesPage.qml b/plugins/DigitalLibrary/resources/qml/SaveProjectFilesPage.qml index 5cf0d571fe..fa648d8bc2 100644 --- a/plugins/DigitalLibrary/resources/qml/SaveProjectFilesPage.qml +++ b/plugins/DigitalLibrary/resources/qml/SaveProjectFilesPage.qml @@ -67,11 +67,17 @@ Item } text: PrintInformation.jobName - font: UM.Theme.getFont("medium") + font: fontMetrics.font + height: fontMetrics.height + 2 * UM.Theme.getSize("thin_margin").height placeholderText: "Enter the name of the file." onAccepted: { if (saveButton.enabled) {saveButton.clicked()}} } + FontMetrics + { + id: fontMetrics + font: UM.Theme.getFont("medium") + } Rectangle {