doc: tweaks to uix/scrollview.py

This commit is contained in:
Zen-CODE 2016-08-09 02:36:48 +02:00
parent 87854ff965
commit e519911086
1 changed files with 5 additions and 4 deletions

View File

@ -51,10 +51,11 @@ to False.
Managing the Content Size and Position Managing the Content Size and Position
-------------------------------------- --------------------------------------
ScrollView manages the position of its children similarly to a The ScrollView manages the position of its children similarly to a
RelativeLayout (see :mod:`~kivy.uix.relativelayout`) but not the size. You must :class:`~kivy.uix.relativelayout.RelativeLayout` but does not use the
carefully specify the `size_hint` of your content to get the desired :attr:`~kivy.uix.widget.Widget.size_hint`. You must
scroll/pan effect. carefully specify the :attr:`~kivy.uix.widget.Widget.size` of your content to
get the desired scroll/pan effect.
By default, size_hint is (1, 1), so the content size will fit your ScrollView By default, size_hint is (1, 1), so the content size will fit your ScrollView
exactly (you will have nothing to scroll). You must deactivate at least one of exactly (you will have nothing to scroll). You must deactivate at least one of