Skip to content

Commit

Permalink
Reduce text field heights
Browse files Browse the repository at this point in the history
  • Loading branch information
dkratzert committed Apr 17, 2024
1 parent a6f89cf commit 3e65c4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion finalcif/appwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3e65c4f

Please sign in to comment.