mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Fix scrollbar not updating with CSS
This commit is contained in:
@@ -214,7 +214,6 @@ class Compositor:
|
||||
Returns:
|
||||
ReflowResult: Hidden shown and resized widgets
|
||||
"""
|
||||
print("REFLOW")
|
||||
self._cuts = None
|
||||
self.root = parent
|
||||
self.size = size
|
||||
|
||||
@@ -380,6 +380,11 @@ class Stylesheet:
|
||||
apply = self.apply
|
||||
for node in root.walk_children():
|
||||
apply(node, animate=animate)
|
||||
if isinstance(node, Widget):
|
||||
if node.show_vertical_scrollbar:
|
||||
apply(node.vertical_scrollbar)
|
||||
if node.show_horizontal_scrollbar:
|
||||
apply(node.horizontal_scrollbar)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -181,7 +181,6 @@ class Screen(Widget):
|
||||
self.check_idle()
|
||||
|
||||
async def handle_layout(self, message: messages.Layout) -> None:
|
||||
print("LAYOUT")
|
||||
message.stop()
|
||||
message.prevent_default()
|
||||
self._layout_required = True
|
||||
|
||||
Reference in New Issue
Block a user