From 3e65c4f6afbba71465fd77ecd448affb9eb86dcc Mon Sep 17 00:00:00 2001 From: Daniel Kratzert Date: Wed, 17 Apr 2024 20:39:24 +0200 Subject: [PATCH] Reduce text field heights --- finalcif/appwindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/finalcif/appwindow.py b/finalcif/appwindow.py index fa9a22fc..266060b6 100644 --- a/finalcif/appwindow.py +++ b/finalcif/appwindow.py @@ -635,7 +635,7 @@ def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: def setTextEditSizes(self): for ui in [self.ui.Spacegroup_top_LineEdit, self.ui.CCDCNumLineEdit, self.ui.SumFormMainLineEdit]: - ui.setFixedHeight(self.ui.datanameComboBox.height() + 6) + ui.setFixedHeight(self.ui.appendCifPushButton.height()) vScrollBar = ui.verticalScrollBar() # Scroll down a bit, or text will not be in the vertical center: vScrollBar.triggerAction(QScrollBar.SliderSingleStepAdd)