Update tests to handle scroll changes to Container

See #2361.
This commit is contained in:
Dave Pearson
2023-04-24 11:10:37 +01:00
parent a91b2c6b35
commit b896e9d7f9
8 changed files with 23 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
from textual.app import App
from textual.containers import Container
from textual.containers import ScrollableContainer
from textual.widgets import Label
TEXT = """I must not fear.
@@ -14,7 +14,7 @@ Where the fear has gone there will be nothing. Only I will remain.
class ScrollbarApp(App):
def compose(self):
yield Container(Label(TEXT * 5), classes="panel")
yield ScrollableContainer(Label(TEXT * 5), classes="panel")
app = ScrollbarApp(css_path="scrollbar_size.css")