Skip to content

Commit a697a2d

Browse files
authored
Merge pull request #4100 from TomJGooding/fix-option-list-add-max-height-to-fix-scrolling
fix(option list): add max height to fix scrolling
2 parents 1abbe8a + f60649e commit a697a2d

File tree

5 files changed

+178
-0
lines changed

5 files changed

+178
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
### Fixed
1111

12+
- Fixed scrolling in long `OptionList` by adding max height of 100% https://github.com/Textualize/textual/issues/4021
1213
- Fixed `DirectoryTree.clear_node` not clearing the node specified https://github.com/Textualize/textual/issues/4122
1314

1415
### Changed
@@ -29,6 +30,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2930
- Added Worker.cancelled_event https://github.com/Textualize/textual/pull/4075
3031
- `Tree` (and `DirectoryTree`) grew an attribute `lock` that can be used for synchronization across coroutines https://github.com/Textualize/textual/issues/4056
3132

33+
3234
## [0.48.2] - 2024-02-02
3335

3436
### Fixed

src/textual/widgets/_option_list.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ class OptionList(ScrollView, can_focus=True):
177177
DEFAULT_CSS = """
178178
OptionList {
179179
height: auto;
180+
max-height: 100%;
180181
background: $boost;
181182
color: $text;
182183
overflow-x: hidden;

0 commit comments

Comments
 (0)