mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add a docstring to action_scroll_end
This commit is contained in:
@@ -1008,6 +1008,11 @@ class Tree(Generic[TreeDataType], ScrollView, can_focus=True):
|
||||
self.scroll_to_line(self.cursor_line)
|
||||
|
||||
def action_scroll_end(self) -> None:
|
||||
"""Move the cursor to the bottom of the tree.
|
||||
|
||||
Note:
|
||||
Here button means vertically, not branch depth.
|
||||
"""
|
||||
self.cursor_line = self.last_line
|
||||
self.scroll_to_line(self.cursor_line)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user