Skip to content

[iOS] FlyoutPage Shadow works incorrectly on iOS - fix#22351

Merged
PureWeen merged 3 commits into
dotnet:mainfrom
kubaflo:fix-22169
May 13, 2024
Merged

[iOS] FlyoutPage Shadow works incorrectly on iOS - fix#22351
PureWeen merged 3 commits into
dotnet:mainfrom
kubaflo:fix-22169

Conversation

@kubaflo
Copy link
Copy Markdown
Contributor

@kubaflo kubaflo commented May 12, 2024

Fixes #22169

Before After
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

@kubaflo kubaflo requested a review from a team as a code owner May 12, 2024 12:20
@kubaflo kubaflo requested review from jfversluis and rmarinho May 12, 2024 12:20
@dotnet-policy-service dotnet-policy-service Bot added the community ✨ Community Contribution label May 12, 2024
if (_applyShadow)
{
var openProgress = targetFrame.X / flyoutWidth;
var openProgress = !IsRTL
Copy link
Copy Markdown
Member

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?

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.

Copy link
Copy Markdown
Contributor Author

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

@jsuarezruiz
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FlyoutPage Shadow works incorrectly on iOS

4 participants