During refactoring I noticed that an image element blocks the resizing(stretching) in a layout. If I replace the image with an rectangle of the same size the resizing works as expected.
I expected a fixed sized image element to behave the same as a fixed sized rectangle:
What makes it even worse is that when the image is conditional, it works as expected. This makes it very hard to reason about the layout system.
This sort of bugs makes it hard to understand the (not so intuitive) layout system and requires additional time to find workarounds. The initial fast development speed is slowed down drastically when something odd in the layout happens.
Bug Description
During refactoring I noticed that an image element blocks the resizing(stretching) in a layout. If I replace the image with an rectangle of the same size the resizing works as expected.
I expected a fixed sized image element to behave the same as a fixed sized rectangle:
What makes it even worse is that when the image is conditional, it works as expected. This makes it very hard to reason about the layout system.
if true: Image {
Reproducible Code (if applicable)
Environment Details
Product Impact
This sort of bugs makes it hard to understand the (not so intuitive) layout system and requires additional time to find workarounds. The initial fast development speed is slowed down drastically when something odd in the layout happens.