-
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
[iOS] FlyoutPage Shadow works incorrectly on iOS - fix #22351
Conversation
@@ -694,7 +694,9 @@ bool shouldReceive(UIGestureRecognizer g, UITouch t) | |||
|
|||
if (_applyShadow) | |||
{ | |||
var openProgress = targetFrame.X / flyoutWidth; | |||
var openProgress = !IsRTL |
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.
do we need to apply this logic here also?
maui/src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs
Lines 666 to 669 in 7cc03f6
if (_applyShadow) | |
{ | |
var openProgress = targetFrame.X / _flyoutController.View.Frame.Width; | |
ApplyDetailShadow((nfloat)openProgress); |
If yes, then maybe we modify ApplyDetailShadow and pass in all these things as parameters so we're not duplicated.
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.
Yeah I've added another commit with a small change that fixes it
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Fixes #22169
Simulator.Screen.Recording.-.iPad.mini.6th.generation.-.2024-05-12.at.14.08.58.mp4
Simulator.Screen.Recording.-.iPad.mini.6th.generation.-.2024-05-12.at.13.41.16.mp4