Allow cursor to hover above fixed column cells

This commit is contained in:
Darren Burns
2023-02-15 10:42:23 +00:00
parent 65143dcbfe
commit b37fc6b3f9

View File

@@ -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: