Description

Looks like the resize that does the safe zone update is done before the orientation is updated.  I suggested swapping the order to licensee in the UDN ticket and it worked for him.  This should be tested more and fixed:

A resize should be handled in FAndroidApplication::PollGameDeviceState() when bWindowSizeChanged is set by the event handler. FDisplayMetrics::RebuildDisplayMetrics sets up the safe zones. I see that HandleDeviceOrientation(); happens after this so moving it before the bWindowSizeChanged() may help here (I believe it didn't get the changed orientation used to set the SafeZone values). 
Steps to Reproduce

Set up project allowing full rotation options for Android

Make a UMG layout with button in area that would be in safe zone in landscape using a safe zone container.

Run on device in portrait.  Switch to landscape and see if button moved.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-229699 in the post.

0
Login to Vote

Unresolved
ComponentUE - Platform - Mobile
Affects Versions5.5
Target Fix5.6
CreatedNov 5, 2024
UpdatedNov 20, 2024
View Jira Issue