Describe the bug
When a widget that sets its height based on its width is placed in an AnchorLayout, the height of the widget does not change according to its width set by the AnchorLayout. AnchorLayout controls the height of such a widget, ignoring the outright prohibition (size_hint_y = None).
To Reproduce
Put the Image widget, which increases its height based on its width and image proportions, inside the AnchorLayout. Set size_hint_y to None to prevent AnchorLayout from controlling the height of the Image.
It is expected that when changing the width of the AnchorLayout, the Image will change its height. But in fact, the height of the Image does not change:
Software Versions
Describe the bug When a widget that sets its
height
based on itswidth
is placed in anAnchorLayout
, theheight
of the widget does not change according to itswidth
set by theAnchorLayout
.AnchorLayout
controls the height of such a widget, ignoring the outright prohibition (size_hint_y = None
).To Reproduce
Put the
Image
widget, which increases its height based on its width and image proportions, inside theAnchorLayout
. Setsize_hint_y
toNone
to preventAnchorLayout
from controlling the height of theImage
.It is expected that when changing the width of the
AnchorLayout
, theImage
will change its height. But in fact, the height of theImage
does not change:https://github.com/kivy/kivy/assets/27895729/09cc4994-f192-4c57-a73b-02e21554a810
Expected behavior
Image
should change size, filling the window in width and keeping the proportions.https://github.com/kivy/kivy/assets/27895729/3032f785-775d-441d-8ec1-0e27b104983b