Skip to content

Commit

Permalink
Make act buttons squishy by ignoring horizontal size policy #1375
Browse files Browse the repository at this point in the history
  • Loading branch information
zkovari committed Oct 4, 2024
1 parent 44909ab commit 3429187
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/python/plotlyst/view/widget/structure/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ def __init__(self, structure: StoryStructure, act: int, parent=None, left: bool
super().__init__(parent)
self.structure = structure
self.act = act
self.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Fixed)
self.setSizePolicy(QSizePolicy.Policy.Ignored, QSizePolicy.Policy.Fixed)
self.setMinimumWidth(10)
if act == 0:
self.setText('Structure')
else:
Expand Down

0 comments on commit 3429187

Please sign in to comment.