mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge branch 'main' into promote-disabled
This commit is contained in:
@@ -5,12 +5,16 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## [0.12.0] - Unreleased
|
||||
## Unreleased
|
||||
|
||||
### Added
|
||||
|
||||
- Added `Widget.disabled` https://github.com/Textualize/textual/pull/1785
|
||||
|
||||
### Fixed
|
||||
|
||||
- DataTable scrollbars resize correctly when header is toggled https://github.com/Textualize/textual/pull/1803
|
||||
|
||||
## [0.11.0] - 2023-02-15
|
||||
|
||||
### Added
|
||||
|
||||
@@ -260,9 +260,6 @@ class DOMNode(MessagePump):
|
||||
"""
|
||||
bindings: list[Bindings] = []
|
||||
|
||||
# To start with, assume that bindings won't be priority bindings.
|
||||
priority = False
|
||||
|
||||
for base in reversed(cls.__mro__):
|
||||
if issubclass(base, DOMNode):
|
||||
if not base._inherit_bindings:
|
||||
|
||||
@@ -787,7 +787,11 @@ class DataTable(ScrollView, Generic[CellType], can_focus=True):
|
||||
elif self.cursor_type == "column":
|
||||
self._highlight_column(self.cursor_column)
|
||||
|
||||
def watch_show_header(self) -> None:
|
||||
def watch_show_header(self, show: bool) -> None:
|
||||
width, height = self.virtual_size
|
||||
height_change = self.header_height if show else -self.header_height
|
||||
self.virtual_size = Size(width, height + height_change)
|
||||
self._scroll_cursor_into_view()
|
||||
self._clear_caches()
|
||||
|
||||
def watch_fixed_rows(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user