Skip to content

Commit

Permalink
clear on size updte
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Mar 23, 2024
1 parent ea3404d commit 0955254
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/textual/scroll_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def _size_updated(
or virtual_size != self.virtual_size
or container_size != self.container_size
):
self._scrollbar_changes.clear()
self._size = size
virtual_size = self.virtual_size
self._container_size = size - self.styles.gutter.totals
Expand Down
2 changes: 1 addition & 1 deletion src/textual/widgets/_sparkline.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(
Args:
data: The initial data to populate the sparkline with.
summary_function: Summarises bar values into a single value used to
summary_function: Summarizes bar values into a single value used to
represent each bar.
name: The name of the widget.
id: The ID of the widget in the DOM.
Expand Down

0 comments on commit 0955254

Please sign in to comment.