-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[iOS] Put the UIScrollView into a UIView in a border handler #25098
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
Conversation
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
// If the content is a UIScrollView, we need a container to handle masks and clip shapes effectively. | ||
if (platformContent is UIScrollView && content.Handler is not null) | ||
{ | ||
content.Handler.HasContainer = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think with how HasContainer works this might be risky
Something might cause Container to reset back to false
I would be curious at some point to explore a way for the parent to flag the child as needing a container but for now I think we'll just have to add a view here and then add the content to that view.
549a89f
to
ef14890
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
ef14890
to
fbf3fe3
Compare
/rebase |
fbf3fe3
to
6c5e001
Compare
As @jsuarezruiz wrote could you please share a code with us, so we can try to replicate it? Also, I've modified this PR a bit so it would be cool if you try again and let us know the outcome. Thanks! |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
6c5e001
to
9b5f31b
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
33551b3
to
e7e9fa4
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/rebase |
e7e9fa4
to
22ade23
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
[Test] | ||
[Category(UITestCategories.Editor)] | ||
[Category(UITestCategories.Border)] | ||
public void EditorScrollingWhenEnclosedInBorder() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this is a little bit flakey on Android
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, it the screenshots look different on various android devices. Maybe I should disable Android for this?
22ade23
to
e0023b4
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
cb5794f
to
c47c3ff
Compare
c47c3ff
to
aa275e1
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 7 out of 10 changed files in this pull request and generated no comments.
Files not reviewed (3)
- src/Controls/tests/TestCases.HostApp/Issues/Issue20736.xaml: Language not supported
- src/Core/src/PublicAPI/net-ios/PublicAPI.Unshipped.txt: Language not supported
- src/Core/src/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt: Language not supported
Comments suppressed due to low confidence (2)
src/Core/src/Handlers/Border/BorderHandler.iOS.cs:2
- The 'using System.Formats.Asn1;' directive is unnecessary and should be removed.
using System.Formats.Asn1;
src/Core/src/Handlers/ScrollView/ScrollViewHandler.iOS.cs:12
- The removal of the
NeedsContainer
override affects the public API. This is potentially a breaking change.
public override bool NeedsContainer
|
Description of Change
Putting UIScroll view in a UIView is necessary when applying masking which is a case with the border control. However, checking from border handler is better than checking up from UiScrollViews like in here #14096
Issues Fixed
Fixes #8923
Fixes #14091
Fixes #7524
Fixes #14091
Fixes #20736
Fixes #18486
Closes #24683