Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If you rotate the screen while the Popup is displayed, the Popup will be displayed
in an unintended position. This PR ensures that the popup appears in the correct
position after screen rotation.
Description of Change
This issue was resolved by overriding MauiPopup's ViewWilTransitionToSize method and
calling the PopupExtension's SetSize and SetLayout methods after rotation.
Because the anchor is not set again after screen rotation. By setting this anchor again,
the Popup will be displayed at the intended location.
[MauiPopup.macios.cs]
Linked Issues
PR Checklist
approved
(bug) orChampioned
(feature/proposal)main
at time of PRAdditional information
Below is the execution result.
When Requires full request in info.plist is OFF.
[iOS 13.7]
iPad.7th.generation.iOS.13.7.2023-06-14.13-56-07.mp4
[iOS 14.5]
iPad.8th.generation.iOS.14.5.2023-06-14.13-41-18.mp4
[iOS 15.5]
iPad.9th.generation.iOS.15.5.2023-06-14.13-33-06.mp4
[iOS 16.4]
iPad.10th.generation.iOS.16.4.2023-06-14.13-26-39.mp4
When Requires full request in info.plist is ON.
[iOS 13.7]
iPad.7th.generation.iOS.13.7.2023-06-14.14-07-43.mp4
[iOS 14.5]
iPad.8th.generation.iOS.14.5.2023-06-14.14-25-09.mp4
[iOS 15.5]
iPad.9th.generation.iOS.15.5.2023-06-14.14-27-53.mp4
[iOS 16.4]
iPad.10th.generation.iOS.16.4.2023-06-14.14-30-15.mp4
By applying this solution, the position of the popup after screen rotation became as intended.