Skip to content

Commit

Permalink
Don't expand single-line text fields
Browse files Browse the repository at this point in the history
  • Loading branch information
machinewrapped committed Jul 9, 2023
1 parent b50a51a commit 81f8dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GUI/Widgets/OptionsWidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, key, initial_value, tooltip = None):
self.layout.setContentsMargins(0,0,0,0)
self.text_field = QLineEdit(self)
self.text_field.setText(initial_value)
self.text_field.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.MinimumExpanding)
self.text_field.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
self.text_field.textChanged.connect(self.contentChanged)
self.layout.addWidget(self.text_field)

Expand Down

0 comments on commit 81f8dbd

Please sign in to comment.