iOS: Image layout problem - can spill out into surrounding UI #14926
Labels
area-controls-image
Image control
area-layout
StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
delighter
fixed-in-8.0.0-rc.2.9511
Look for this fix in 8.0.0-rc.2.9511
platform/iOS 🍎
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
I attempted to create a UI which contained an element that has a button either side, with an image in the center.
I tried two different ways of doing this,
Using a grid;
Using an AbsoluteLayout;
Both of these work on Android;
Both fail to render correctly on iOS - note how the image goes full width and overlaps the left button due to element order/Z-index
Steps to Reproduce
Link to public reproduction project repository
https://github.com/RobTF/mauiplay/tree/master/ImageGridIssue
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 16
Did you find any workaround?
For the grid version, removing
HorizontalLayout="Center"
constrains the image to the correct area of the grid.For the absolute layout version, adding
WidthRequest
can solve the issue, but the width must be manually calculated ahead of time, based on the height vs. aspect ratio of the image.Relevant log output
The text was updated successfully, but these errors were encountered: