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

[iOS][9.0.30] View getting clipped while it shouldn't? #27169

Open
JoviSimons opened this issue Jan 16, 2025 · 6 comments
Open

[iOS][9.0.30] View getting clipped while it shouldn't? #27169

JoviSimons opened this issue Jan 16, 2025 · 6 comments
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter i/regression This issue described a confirmed regression on a currently supported version platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@JoviSimons
Copy link

JoviSimons commented Jan 16, 2025

Description

when updating to MAUI version 9.0.30 from 9.0.22, my Views are getting clipped. Below I provide a before and after update picture with the code. This is only on iOS, Android works fine. Really need this update since it fixes important issues for us.

Steps to Reproduce

Before update (version 9.0.22):

before

After update (version 9.0.30):

after

With HeightRequest 600:

afterheight

Did something change with Views or how heights are measured in 9.0.30? Or what is the reason that it suddenly changes after update?

EDIT: removed code see sample project: https://github.com/JoviSimons/ViewSample

Link to public reproduction project repository

https://github.com/JoviSimons/ViewSample

Version with bug

9.0.30 SR3

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

9.0.22 SR2.2

Affected platforms

iOS

Affected platform versions

iOS 18.0.1

Did you find any workaround?

No workaround found yet, only setting the Height Request manually.

Relevant log output

@JoviSimons JoviSimons added the t/bug Something isn't working label Jan 16, 2025
@JoviSimons JoviSimons changed the title [iOS] View getting clipped while it shouldn't? [iOS][9.0.30] View getting clipped while it shouldn't? Jan 16, 2025
@Ying-6
Copy link

Ying-6 commented Jan 16, 2025

Hi @JoviSimons could you provide us with a sample project so we can investigate it further? Looking forward to your reply!

@JoviSimons
Copy link
Author

@Ying-6 Thanks for the fast reply!
Here the repository link:

https://github.com/JoviSimons/ViewSample

@StephaneDelcroix StephaneDelcroix added area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/iOS 🍎 labels Jan 16, 2025
@StephaneDelcroix StephaneDelcroix added this to the .NET 9 SR5 milestone Jan 16, 2025
@PureWeen PureWeen modified the milestones: .NET 9 SR5, .NET 9 SR3.1 Jan 16, 2025
@PureWeen PureWeen added the i/regression This issue described a confirmed regression on a currently supported version label Jan 16, 2025
@albyrock87
Copy link
Contributor

albyrock87 commented Jan 16, 2025

@JoviSimons your example is really convoluted.

I'm trying to replicate with a simple one like this, but it's working fine, so can you tell me what is gonna break this simple example?

void MainPage()
{
	var contentView = new ContentView();
	Content = contentView;
	Dispatcher.Dispatch(() =>
	{
	    contentView.Content = new ScrollView
	    {
	        BackgroundColor = Colors.Red,
	        Padding = 10,
	        Content = new Border
	        {
		        Stroke = Colors.Green,
		        Content = new Grid
		        {
			        VerticalOptions = LayoutOptions.Start,
			        BackgroundColor = Colors.BlueViolet,
			        MinimumHeightRequest = 300,
		        }
	        }
	    };
	});
}
Screenshot

Image

@albyrock87
Copy link
Contributor

@JoviSimons don't you have a mistake in your code?
https://github.com/JoviSimons/ViewSample/blob/master/ViewSample/MainPage.xaml.cs#L32
Shouldn't this be with ++?

grid.AddToGrid(createNewSection(isResize), row: rowCounter++);

@Ying-6 Ying-6 added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage labels Jan 17, 2025
@Ying-6
Copy link

Ying-6 commented Jan 17, 2025

This issue has been verified using Visual Studio 17.13.0 Preview 2.1 (9.0.30). Can repro on iOS platform. And 9.0.22 works fine.

@JoviSimons
Copy link
Author

JoviSimons commented Jan 17, 2025

@JoviSimons your example is really convoluted.

I'm trying to replicate with a simple one like this, but it's working fine, so can you tell me what is gonna break this simple example?

@albyrock87 Yeah sorry, it's a fast stripped down version of the original code. The original code creates dynamic form layouts with sections and columns used in a no-code solution.

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 i/regression This issue described a confirmed regression on a currently supported version platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

5 participants