Reputation: 125
I am not getting what is difference between size_hint_max
, size_hint_min
, size_hint
in kivy.
I know that size_hint_max
will use size_hint_max_x
and size_hint_max_y
for its ReferenceList
property, but when does this thing will make difference??
Can someone explian me?
Upvotes: 1
Views: 391
Reputation: 39012
It's pretty straightforward. The size_hint
is used to calculate the size of the Widget
. If the calculated size is greater than the size_hint_max
, then it is set to the size_hint_max
(similar for size_hint_min
). Note that size_hint_max
and size_hint_min
are in pixels and are only valid for containers that honor them (like FloatLayout
).
See documentation
Upvotes: 2