Skip to content

Commit

Permalink
Merge pull request #11900 from kacperpaczos/standalone_height
Browse files Browse the repository at this point in the history
Fixed calculate a sidePage height when it comes as standalone
  • Loading branch information
claudiux authored Oct 26, 2023
2 parents 5d420b3 + 6900f6e commit e236812
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ def go_to_sidepage(self, sidePage: SettingsWidgets.SidePage, user_action=True):
m, n = widget.get_preferred_width()
width += n
self.top_bar.set_size_request(width + 20, -1)
self.calculate_bar_heights()
self.maybe_resize(sidePage)

def maybe_resize(self, sidePage):
Expand All @@ -236,7 +237,8 @@ def maybe_resize(self, sidePage):
use_height = sidePage.size + self.bar_heights + WIN_H_PADDING
elif sidePage.size == -1:
# Module requested the window to fit it (i.e. shrink the window if necessary)
use_height = total_height
use_height = total_height + self.bar_heights


self.window.resize(WIN_WIDTH, use_height)

Expand Down

0 comments on commit e236812

Please sign in to comment.