Test app: 'BEFORE' / scrollable container with 10 items / 'AFTER'.
| 47 | |
| 48 | |
| 49 | class _ScrollableSelectApp(App): |
| 50 | """Test app: 'BEFORE' / scrollable container with 10 items / 'AFTER'.""" |
| 51 | |
| 52 | CSS = """ |
| 53 | Screen { |
| 54 | layout: vertical; |
| 55 | } |
| 56 | #before, #after, .item { |
| 57 | height: 1; |
| 58 | } |
| 59 | #scroller { |
| 60 | height: 5; |
| 61 | border: none; |
| 62 | padding: 0; |
| 63 | } |
| 64 | """ |
| 65 | |
| 66 | def compose(self) -> ComposeResult: |
| 67 | yield Static("BEFORE", id="before") |
| 68 | with VerticalScroll(id="scroller"): |
| 69 | for i in range(10): |
| 70 | yield Static(f"item-{i:02d}", classes="item", id=f"item-{i}") |
| 71 | yield Static("AFTER", id="after") |
| 72 | |
| 73 | |
| 74 | async def test_select_into_scrollable_container(): |
no outgoing calls
searching dependent graphs…