Hi, is it fine that size Modifiers from parent has...
# compose
a
Hi, is it fine that size Modifiers from parent has more priority than from inline layout e.g. Column?
🤔 3
2 screenshots with swapped modifiers
It feels like green area should be clipped by inner size modifier, but it doesn't (2nd example)
a
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
👍 1