-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 layout and safe area on FlyoutPage #10083
Conversation
_viewHandlerWrapper.SetVirtualView(element, OnElementChanged, false); | ||
Presented = ((FlyoutPage)element).IsPresented; |
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.
This fixes an NRE caused by setting Presented
before the _viewHandlerWrapper
has been set. Which popped up from the test that's part of this PR
src/Controls/src/Core/PlatformConfiguration/iOSSpecific/Page.cs
Outdated
Show resolved
Hide resolved
@@ -594,29 +594,48 @@ internal static IDisposable OnLoaded(this UIView uiView, Action action) | |||
} | |||
|
|||
Dictionary<NSString, NSObject> observers = new Dictionary<NSString, NSObject>(); | |||
ActionDisposable? disposable = new ActionDisposable(() => | |||
ActionDisposable? disposable = null; |
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.
The modifications here all were necessary to fix FlyoutPage
so it would fire Loaded
. The Unit Tests use Loaded
to know when to proceed with the tests.
ebdba66
to
91b374e
Compare
# Conflicts: # src/Controls/tests/DeviceTests/Stubs/WindowHandlerStub.iOS.cs
Description of Change
Issues Fixed
Fixes #6408