Skip to content

Commit

Permalink
MoultiLog: do not maximize the container.
Browse files Browse the repository at this point in the history
`self.screen.maximize(self)` used to maximize only the log widget, despite the
`container` parameter defaulting to `True`.
Starting with Textual 0.85.0, `container=True` actually maximizes the
containing widget (i.e. the parent step).
Explicitly setting `False` restores the expected behaviour.
  • Loading branch information
xavierog committed Oct 26, 2024
1 parent fa443fa commit d57ba91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moulti/widgets/moultilog.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def set_max_height(self, new_max_height: int|None) -> int|None:
def action_maximize(self) -> None:
self.max_height_backup = self.styles.max_height
self.styles.max_height = '99h' # Leave some room for the search widget
self.screen.maximize(self)
self.screen.maximize(self, False)
self.refresh_bindings()

def action_minimize(self) -> None:
Expand Down

0 comments on commit d57ba91

Please sign in to comment.