Skip to content

Commit a1f2f8b

Browse files
committed
restore scrollbar behavor
1 parent 4d8a905 commit a1f2f8b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/textual/widget.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -370,14 +370,10 @@ class Widget(DOMNode):
370370
scroll_target_y = Reactive(0.0, repaint=False)
371371
"""Scroll target destination, Y coord."""
372372

373-
show_vertical_scrollbar: Reactive[bool] = Reactive(
374-
False, layout=False, repaint=False
375-
)
373+
show_vertical_scrollbar: Reactive[bool] = Reactive(False, layout=True)
376374
"""Show a vertical scrollbar?"""
377375

378-
show_horizontal_scrollbar: Reactive[bool] = Reactive(
379-
False, layout=False, repaint=False
380-
)
376+
show_horizontal_scrollbar: Reactive[bool] = Reactive(False, layout=True)
381377
"""Show a horizontal scrollbar?"""
382378

383379
border_title = _BorderTitle() # type: ignore

0 commit comments

Comments
 (0)