Doodle 0.11.5 released. <https://github.com/nacul...
# doodle
n
alphabet yellow d 1
c
Im confused with the new layout system. When I attach a layout to the display, min, current and max sizes are all the same. Which i think its the intended behaviour But how can I be in control of setting the min and max sizes to child views??
n
the
Display
(or any
View
with a
Layout
) shares these values with their layout during the call to
layout()
. you can only specify the min and max sizes from this method within a
Layout
. you do this by calling
updateBounds
on one of the Views represented by an item in the sequence of
Positionables
passed to
layout()
. this approach gives a View’s parent (via its
Layout
) control over its bounds.
check out the API for Layout here if you haven't already https://nacular.github.io/doodle-api/core/io.nacular.doodle.core/-layout/layout.html
alphabet yellow d 1
c
Thank you. This really helped. I had no idea I can call
positionable.preferredSize
👍 1