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

Fix issues with ScrollView on ios that does not correctly resize when… #15460

Closed
wants to merge 3 commits into from

Conversation

jadenrogers
Copy link

@jadenrogers jadenrogers commented Jun 6, 2023

Description of Change

Fixes ScrollView on ios not being correctly sized when changes occur within the ScrollView content.

Issues Fixed

fixes #15374
fixes #14624
fixes #15288
fixes #15283
fixes #14795

@ghost ghost added the community ✨ Community Contribution label Jun 6, 2023
@ghost
Copy link

ghost commented Jun 6, 2023

Hey there @jadenrogers! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@jadenrogers
Copy link
Author

@dotnet-policy-service agree

@Eilon Eilon added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Jun 6, 2023
@jadenrogers
Copy link
Author

@PureWeen

@jadenrogers
Copy link
Author

Hi @hartez This PR is part of the whole bug fix vnext backport .net 7 debate and highlights the struggles I bump into with regard to bugs.

Should we be able to Inherit from the current handler and fix the effected calls in someway shape or form? It isn't possible currently due to how its designed but It would be great if we could simply override specific methods etc.

public class MyFixedHandler : ScrollViewHandler
{
   protected override ArrangeScrollViewContent(){
....
}

}

It's not even possible to copy the whole handler and have it in your own project as ContentView.CrossPlatformArrange is also internal.

If the policy is not to fix long standing bugs in the current version, please make it more open for .net 8 so people can fix their own without compiling from source (Change private to protected and stop using internal).

@hartez
Copy link
Contributor

hartez commented Jun 13, 2023

Should we be able to Inherit from the current handler and fix the effected calls in someway shape or form? It isn't possible currently due to how its designed but It would be great if we could simply override specific methods etc.

You have a couple options - you can modify the mappings themselves (in your example, probably the Content mapping), or you can replace the entire handler. Take a look at this article: Customize controls with handlers.

@rmarinho rmarinho requested a review from hartez June 20, 2023 11:37
@rmarinho
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@cat0363
Copy link
Contributor

cat0363 commented Jun 29, 2023

Applying this PR will also resolve Issue #14795.
With this PR, Gestures now work as intended.

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 15460 in repo dotnet/maui

@jadenrogers
Copy link
Author

@hartez Is there anything I need to do here? Feedback etc.

@PureWeen
Copy link
Member

/azp run

@azure-pipelines
Copy link

No commit pushedDate could be found for PR 15460 in repo dotnet/maui

@rmarinho
Copy link
Member

/azp run

@azure-pipelines
Copy link

No commit pushedDate could be found for PR 15460 in repo dotnet/maui

@rmarinho
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@rmarinho
Copy link
Member

I think is a good case do add a UITest for this one.

@jadenrogers
Copy link
Author

jadenrogers commented Jul 20, 2023

I think is a good case do add a UITest for this one.

@rmarinho Is that something that needs to be done now with this PR or in a separate one?

@rmarinho
Copy link
Member

rmarinho commented Jul 31, 2023

@jadenrogers can you test with the new changes from main? seem if it fixes the issue or if we still need that fix, we made some changes recently.

0047ca2

@samhouts samhouts added this to the .NET 8 GA milestone Aug 4, 2023
@PureWeen
Copy link
Member

PureWeen commented Aug 7, 2023

@jadenrogers we have some docs here on how to add a UITest
https://github.com/dotnet/maui/blob/main/docs/design/UITesting.md

If you don't have bandwidth to add tests just let us know and we'll take care of it. If the docs are confusing let us know and we'll improve them!

@jadenrogers
Copy link
Author

@jadenrogers we have some docs here on how to add a UITest https://github.com/dotnet/maui/blob/main/docs/design/UITesting.md

If you don't have bandwidth to add tests just let us know and we'll take care of it. If the docs are confusing let us know and we'll improve them!

On it, hope to check in later today

@jadenrogers
Copy link
Author

@jadenrogers can you test with the new changes from main? seem if it fixes the issue or if we still need that fix, we made some changes recently.

0047ca2

Yes the issue is fixed. New issue the content never shrinks.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2023
@Eilon Eilon added area-controls-scrollview ScrollView and removed area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter labels May 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.