Tidy up the docstring of Widget.scroll_end

Delivering on a promise made in #1920.
This commit is contained in:
Dave Pearson
2023-03-01 14:25:03 +00:00
parent 48dd54c481
commit af6d56cf8e

View File

@@ -1577,16 +1577,14 @@ class Widget(DOMNode):
"""Scroll to the end of the container.
Args:
animate: Animate scroll. Defaults to True.
speed: Speed of scroll if animate is True. Or None to use duration.
duration: Duration of animation, if animate is True and speed is None.
easing: An easing method for the scrolling animation. Defaults to "None",
which will result in Textual choosing the configured default scrolling easing function.
force: Force scrolling even when prohibited by overflow styling. Defaults to `False`.
animate: Animate scroll.
speed: Speed of scroll if `animate` is `True`. Or `None` to use duration.
duration: Duration of animation, if animate is `True` and speed is `None`.
easing: An easing method for the scrolling animation.
force: Force scrolling even when prohibited by overflow styling.
Returns:
True if any scrolling was done.
"""
if speed is None and duration is None:
duration = 1.0