mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
restore
This commit is contained in:
@@ -468,7 +468,7 @@ class Widget(DOMNode):
|
||||
self.app.start_widget(self, scroll_bar)
|
||||
return scroll_bar
|
||||
|
||||
def _refresh_scrollbars(self) -> tuple[bool, bool]:
|
||||
def _refresh_scrollbars(self) -> None:
|
||||
"""Refresh scrollbar visibility."""
|
||||
if not self.is_scrollable:
|
||||
return
|
||||
@@ -499,8 +499,6 @@ class Widget(DOMNode):
|
||||
self.horizontal_scrollbar.display = show_horizontal
|
||||
self.vertical_scrollbar.display = show_vertical
|
||||
|
||||
return show_horizontal, show_vertical
|
||||
|
||||
@property
|
||||
def scrollbars_enabled(self) -> tuple[bool, bool]:
|
||||
"""A tuple of booleans that indicate if scrollbars are enabled.
|
||||
|
||||
Reference in New Issue
Block a user