From 88776b4e00d78990766c8f7976a3bc6b8be2a397 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Wed, 6 Jan 2021 22:09:20 +0100 Subject: [PATCH] Fix max length bug in Item Editor and let input boxes expand with dialog width --- nw/gui/itemeditor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nw/gui/itemeditor.py b/nw/gui/itemeditor.py index 3e46a11a..592f33cb 100644 --- a/nw/gui/itemeditor.py +++ b/nw/gui/itemeditor.py @@ -64,7 +64,7 @@ class GuiItemEditor(QDialog): # Item Label self.editName = QLineEdit() self.editName.setMinimumWidth(self.mainConf.pxInt(220)) - self.editName.setMaxLength(self.mainConf.pxInt(200)) + self.editName.setMaxLength(200) # Item Status self.editStatus = QComboBox() @@ -143,6 +143,9 @@ class GuiItemEditor(QDialog): self.mainForm.addWidget(self.editLayout, 2, 1, 1, 2) self.mainForm.addWidget(self.textExport, 3, 0, 1, 2) self.mainForm.addWidget(self.editExport, 3, 2, 1, 1) + self.mainForm.setColumnStretch(0, 0) + self.mainForm.setColumnStretch(1, 1) + self.mainForm.setColumnStretch(2, 0) self.outerBox = QVBoxLayout() self.outerBox.setSpacing(self.mainConf.pxInt(16))