Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] iOS Popup: Position of Popup is not centered when the orientation of the device changes #1396

Open
DavidV1603 opened this issue Jun 14, 2021 · 5 comments
Labels
a/popup bug Something isn't working. Breaky break. p/iOS iOS platform issue. s/unverified This issue needs verification/reproduction by a team member. PRs cannot be accepted/merged.

Comments

@DavidV1603
Copy link

Description

If you change the orientation of the iOS device (e.g. from portrait to landscape mode or vice versa), the Popup is not in the center anymore. On Android this works fine.
I guess that is, because the position on iOS is set when initializing to the coordinates of the center of the screen, but the coordinates don't change when the orientation changes.

Steps to Reproduce

  1. Open the Samples app and open the Popup sample on an iOS device.
  2. Change the orientation of the device.

Expected Behavior

The popup should still be in the center of the screen.

Actual Behavior

The popup still has the same coordinates, which are not the center of the screen anymore.

Basic Information

  • Version with issue: v1.1.0
@DavidV1603 DavidV1603 added bug Something isn't working. Breaky break. s/unverified This issue needs verification/reproduction by a team member. PRs cannot be accepted/merged. labels Jun 14, 2021
@jfversluis jfversluis added a/popup p/iOS iOS platform issue. labels Jun 14, 2021
@FlaynGordt
Copy link

We are encountering the same issue in our app.

@jfversluis
Copy link
Member

I guess in the same area as #1402

@KlaasTroost
Copy link

We too, is there any chance someone get fixing this annoying bug?

@madmapper
Copy link

This appears to still be an issue as of 2.0.2 - any recommendations on a workaround or fix to re-render a popup on rotate
Screen Shot 2022-05-31 at 9 50 13 AM
Screen Shot 2022-05-31 at 9 50 26 AM
?

@DonovanVZ
Copy link

Bug is still not fixed?

When opening your popup view subscribe to:
Application.Current.MainPage.SizeChanged += MainPage_SizeChanged;

Manually trigger the PropertyChanged event with OnPropertyChanged(nameof(VerticalOptions)) in the SizeChanged event. This will force the PopupRenderer to recenter the popup.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/popup bug Something isn't working. Breaky break. p/iOS iOS platform issue. s/unverified This issue needs verification/reproduction by a team member. PRs cannot be accepted/merged.
Projects
None yet
Development

No branches or pull requests

6 participants