Skip to content

Commit 90895f2

Browse files
committed
fix(datatable): change max-height back to 100%
The `max-height` of the `DataTable` was changed to 100vh rather than 100% in #3566, because at the time this caused issues with auto height containers, as described in #2975. However this issue was later fixed in #3814. This PR changes the `max-height` of the `DataTable` back to 100%, as 100vh will actually break common layouts and seems no longer required to workaround this auto height issue. Fixes #4286.
1 parent 6b8790e commit 90895f2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
3434
- Fixed a style leak from `TabbedContent` https://github.com/Textualize/textual/issues/4232
3535
- Fixed active hidden scrollbars not releasing the mouse https://github.com/Textualize/textual/issues/4274
3636
- Fixed the mouse not being released when hiding a `TextArea` while mouse selection is happening https://github.com/Textualize/textual/issues/4292
37+
- Fixed `DataTable` scrolling issues by changing `max-height` back to 100% https://github.com/Textualize/textual/issues/4286
3738

3839
### Changed
3940

src/textual/widgets/_data_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ class DataTable(ScrollView, Generic[CellType], can_focus=True):
266266
background: $surface ;
267267
color: $text;
268268
height: auto;
269-
max-height: 100vh;
269+
max-height: 100%;
270270
}
271271
DataTable > .datatable--header {
272272
text-style: bold;

0 commit comments

Comments
 (0)