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

[iOS] Fix for Flyout Menu Backdrop Area does not Readjust on Orientation Change #27700

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

BagavathiPerumal
Copy link
Contributor

Root cause

The root cause of the issue is that TapoffView is initialized with the current View.Bounds only at the time of its creation. However, when the device orientation changes, View.Bounds updates dynamically, while TapoffView does not adjust accordingly. As a result, since TapoffView's frame is not updated after its initial creation, it fails to cover the intended area when the screen dimensions change.

Description of Issue Fix

The fix involves overriding ViewDidLayoutSubviews() to dynamically update TapoffView.Frame when IsOpen and its frame differs from View.Bounds. Since ViewDidLayoutSubviews() is called whenever the view's layout is adjusted, including after rotation, this ensures TapoffView resizes correctly. Additionally, the condition prevents unnecessary updates by only modifying the frame when needed.

Tested the behavior in the following platforms.

  • Windows
  • Android
  • iOS
  • Mac

Issues Fixed

Fixes #21105

Output

Before Issue Fix After Issue Fix
BeforeFix-FlyoutBackDrop.mov
AfterFix-FlyoutBackDrop.mov

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Feb 11, 2025
Copy link
Contributor

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

@karthikraja-arumugam karthikraja-arumugam added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Feb 11, 2025
@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@BagavathiPerumal BagavathiPerumal marked this pull request as ready for review February 12, 2025 04:03
@Copilot Copilot bot review requested due to automatic review settings February 12, 2025 04:03
@BagavathiPerumal BagavathiPerumal requested a review from a team as a code owner February 12, 2025 04:03

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@rmarinho
Copy link
Member

/rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-flyout Flyout community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/iOS 🍎
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iOS: Flyout Menu Backdrop Area does not Readjust on Orientation Change
4 participants