FlexLayout.Grow="1" not respecting Frame WidthRequest for Frames with images inside them. #20379
Labels
area-layout
StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
platform/android 🤖
s/needs-attention
Issue has more information and needs another look
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Description
Example:
Steps to Reproduce
I've blurred out the logo, but it doesn't matter as the issue is with the icons on the right.
Each of the Frames is aligned with the icon to its left, rather than the frame around the icon.
The icon images are set to 24 height and 24 width and the frames are set to 48 height and 48 width. FlexLayout.Grow=1 should align each of the frames inside the FlexLayout with each other, not align each of the frames with the image (icon) inside the frame next to it.
Unless I'm doing it wrong?
The only way I have seen to fix this is by using FlexLayout.Basis="144"
Which is 48x3=144, but I don't want to have to manually enter a fixed width for the FlexLayout. I want it to "hug" the contents, like an Auto Layout in Figma.
Link to public reproduction project repository
No response
Version with bug
8.0.3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 34.0.43
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: