Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[regression/8.0.3] [iOS] Image layout issue in MAUI 8 (regression, worked correct in MAUI 7) #18983

Open
omghb opened this issue Nov 23, 2023 · 5 comments
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/iOS 🍎 potential-regression This issue described a possible regression on a currently supported version., verification pending t/bug Something isn't working
Milestone

Comments

@omghb
Copy link

omghb commented Nov 23, 2023

Description

An Image takes too much Width on iOS.

  • This worked correct on iOS with MAUI 7.
  • This works correct on Android and Windows with MAUI 8.

MauiIosImageLayoutIssue

  • Left image: Android: Correct layout
  • Right image: iOS: Image takes too much Width

Steps to Reproduce

  1. Create a new MAUI App (version 8.0)
  2. Open MainPage.xaml.cs and remove the method 'OnCounterClicked'
  3. Open MainPage.xaml and replace the content with:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="MauiIosNestedGridIssue.MainPage">
    <Grid>
        <ContentView HorizontalOptions="End">
            <Grid RowDefinitions="Auto,Auto" VerticalOptions="Start" Background="LightPink">
                <Image Aspect="Center" HeightRequest="17.5">
                    <Image.Source>
                        <FontImageSource Glyph="A"/>
                    </Image.Source>
                </Image>

                <Label Grid.Row="1" Text="Label" VerticalOptions="Start"/>
            </Grid>
        </ContentView>
    </Grid>
</ContentPage>
  1. Run the App on iOS

Link to public reproduction project repository

No response

Version with bug

8.0.3

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

7.0.96

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@omghb omghb added the t/bug Something isn't working label Nov 23, 2023
@albyrock87
Copy link
Contributor

This might have been already fixed, see #18924 (comment)

@jsuarezruiz jsuarezruiz added area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/iOS 🍎 potential-regression This issue described a possible regression on a currently supported version., verification pending labels Nov 24, 2023
@PureWeen
Copy link
Member

Can you test this with the nightly?

https://github.com/dotnet/maui/wiki/Nightly-Builds

@PureWeen PureWeen added the s/needs-info Issue needs more info from the author label Nov 26, 2023
@ghost
Copy link

ghost commented Nov 26, 2023

Hi @omghb. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@omghb
Copy link
Author

omghb commented Nov 27, 2023

The issue still exists with the latest nightly build version.

I use the version to retest it: 8.0.4-nightly.9659

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Nov 27, 2023
@jsuarezruiz jsuarezruiz removed the s/needs-attention Issue has more information and needs another look label Dec 4, 2023
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Dec 4, 2023
@ghost
Copy link

ghost commented Dec 4, 2023

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@samhouts samhouts changed the title [iOS] Image layout issue in MAUI 8 (regression, worked correct in MAUI 7) [regression/8.0.3] [iOS] Image layout issue in MAUI 8 (regression, worked correct in MAUI 7) Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/iOS 🍎 potential-regression This issue described a possible regression on a currently supported version., verification pending t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants