Skip to content

Commit

Permalink
Merge pull request #4716 from TomJGooding/feat-widget-add-scrollable-…
Browse files Browse the repository at this point in the history
…size-property

feat(widget): add scrollable_size property
  • Loading branch information
willmcgugan authored Jul 10, 2024
2 parents c2e6592 + 5b18de6 commit 2abe889
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/textual/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,15 @@ def size(self) -> Size:
"""
return self.content_region.size

@property
def scrollable_size(self) -> Size:
"""The size of the scrollable content.
Returns:
Scrollable content size.
"""
return self.scrollable_content_region.size

@property
def outer_size(self) -> Size:
"""The size of the widget (including padding and border).
Expand Down

0 comments on commit 2abe889

Please sign in to comment.