mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Actually use the offset cache.
This commit is contained in:
@@ -574,7 +574,7 @@ class DataTable(ScrollView, Generic[CellType], can_focus=True):
|
|||||||
else:
|
else:
|
||||||
for row in self.ordered_rows:
|
for row in self.ordered_rows:
|
||||||
y_offsets += [(row.key, y) for y in range(row.height)]
|
y_offsets += [(row.key, y) for y in range(row.height)]
|
||||||
self._offset_cache = y_offsets
|
self._offset_cache[self._update_count] = y_offsets
|
||||||
return y_offsets
|
return y_offsets
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user