Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.2
-
None
-
iPhone 11 (iOS 14.6)
Description
Repro steps:
1) Open FileDialog (which is shown as PopOver on iPhones) while device is in Portrait orientation
2) Rotate device to change orientation to Landscape
3) Close FileDialog or pick something
As you can see at attached photo Main Scene moved top and left.
Also I did some tests and noticed that in normal situation (when device rotates without FileDialog over the scene) QPlatformWindow::safeAreaMargins() returns QMargins(44, 0, 44, 21) as [[UIApplication sharedApplication].keyWindow safeAreaInsets] does. But in this particular case QPlatformWindow::safeAreaMargins() returns QMargins(0, 0, 0, 0) unlike [[UIApplication sharedApplication].keyWindow safeAreaInsets] which returns (top = 0, left = 44, bottom = 21, right = 44)