mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Allow cursor to hover above fixed column cells
This commit is contained in:
@@ -877,7 +877,7 @@ class DataTable(ScrollView, Generic[CellType], can_focus=True):
|
|||||||
"""Clamp a coordinate such that it falls within the boundaries of the table."""
|
"""Clamp a coordinate such that it falls within the boundaries of the table."""
|
||||||
row, column = coordinate
|
row, column = coordinate
|
||||||
row = clamp(row, 0, self.row_count - 1)
|
row = clamp(row, 0, self.row_count - 1)
|
||||||
column = clamp(column, self.fixed_columns, len(self.columns) - 1)
|
column = clamp(column, 0, len(self.columns) - 1)
|
||||||
return Coordinate(row, column)
|
return Coordinate(row, column)
|
||||||
|
|
||||||
def watch_cursor_type(self, old: str, new: str) -> None:
|
def watch_cursor_type(self, old: str, new: str) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user