Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Oct 24, 2024
1 parent f9d9f17 commit 6276d32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/textual/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -3232,6 +3232,8 @@ def scroll_visible(
immediate=immediate,
)
else:
# self.region is falsey which may indicate the widget hasn't been through a layout operation
# We can potentially make it do the right thing by postponing the scroll to after a refresh
self.call_after_refresh(
self.screen.scroll_to_widget,
self,
Expand Down

0 comments on commit 6276d32

Please sign in to comment.