mirror of https://github.com/kivy/kivy.git
clarify a little the metrics paragraph in guide2/widgets
This commit is contained in:
parent
6b8953cb99
commit
8e230904f9
|
@ -63,12 +63,13 @@ values to any of the pos attributes (x, y, left, top, center_x, center_y) to
|
||||||
have the widget positioned relatively to its parent.
|
have the widget positioned relatively to its parent.
|
||||||
|
|
||||||
|
|
||||||
Size and pos metrics
|
Size and position metrics
|
||||||
--------------------
|
-------------------------
|
||||||
|
|
||||||
Kivy default unit for lenght is the pixel, all size and pos are expressed
|
Kivy default unit for lenght is the pixel, all sizes and positions are
|
||||||
in it, but you can express them in other units, which is useful to achieve
|
expressed in it by default, but you can express them in other units, which is
|
||||||
better consistency accross devices.
|
useful to achieve better consistency accross devices (they get converted to the
|
||||||
|
size in pixel automatically).
|
||||||
|
|
||||||
The available units are `pt`, `mm`, `cm`, `in`, `dp` and `sp`, you can see
|
The available units are `pt`, `mm`, `cm`, `in`, `dp` and `sp`, you can see
|
||||||
about their usage in the :mod:`~kivy.metrics` documentation.
|
about their usage in the :mod:`~kivy.metrics` documentation.
|
||||||
|
|
Loading…
Reference in New Issue