mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Change ScrollView to inherit from ScrollableContainer rather than Widget
See #2332
This commit is contained in:
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Breaking change: standard keyboard scrollable navigation bindings have been moved off `Widget` and onto a new base class for scrollable containers (see also below addition) https://github.com/Textualize/textual/issues/2332
|
- Breaking change: standard keyboard scrollable navigation bindings have been moved off `Widget` and onto a new base class for scrollable containers (see also below addition) https://github.com/Textualize/textual/issues/2332
|
||||||
|
- `ScrollView` now inherits from `Scrollablecontainer` rather than `Widget` https://github.com/Textualize/textual/issues/2332
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
|||||||
@@ -7,11 +7,11 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from rich.console import RenderableType
|
from rich.console import RenderableType
|
||||||
|
|
||||||
|
from .containers import ScrollableContainer
|
||||||
from .geometry import Size
|
from .geometry import Size
|
||||||
from .widget import Widget
|
|
||||||
|
|
||||||
|
|
||||||
class ScrollView(Widget):
|
class ScrollView(ScrollableContainer):
|
||||||
"""
|
"""
|
||||||
A base class for a Widget that handles it's own scrolling (i.e. doesn't rely
|
A base class for a Widget that handles it's own scrolling (i.e. doesn't rely
|
||||||
on the compositor to render children).
|
on the compositor to render children).
|
||||||
|
|||||||
Reference in New Issue
Block a user