Hi, is it fine that size Modifiers from parent has more priority than from inline layout e.g. Column?
🤔 3
Arsen
04/12/2021, 12:45 PM
Arsen
04/12/2021, 12:45 PM
Arsen
04/12/2021, 12:45 PM
2 screenshots with swapped modifiers
Arsen
04/12/2021, 12:49 PM
It feels like green area should be clipped by inner size modifier, but it doesn't (2nd example)
a
Andrey Kulikov
04/12/2021, 2:03 PM
Surface is a Box which propagates min constraints to its children. which means that your Column is also forced to fill the whole size and the fixed size you set is ignored because it is not within the passed constraints where both min and max sizes are set to the screen size. this will work differently if you use requiredSize() instead of size() but most likely you wanted to set a fixed size on Surface instead as you did in the first screenshot