Screen not resizing after rotation


#1

I have an app that has widths defined as a percentage, typically 95%. If I start the app in Lanscape or portrait it looks fine, but if I rotate the device when the app is running the pages do not resize, so if from landscape I rotate to portrait the content is too wide.


#2

I did a quick test with Playground, seems to work as expected. So please share a sample where we can reproduce the issue.


#3

Here is a simple example of the problem

https://play.nativescript.org/?template=play-js&id=bqCRea&v=42

Screen loads a list which is fine in portrait. If you rotate the progress bars on the right disappear.

If you scan the QR code in Landscape all is good, rotate to Portrait fails and vice versa .


#4

Still works as expected for me on Moto G5 with Android 7.0.1. Can you confirm which platform / device you are testing it against?


#5

iOS 11.2.6 iPhone X.

I haven’t been able to test Android yet.


#6

Started in Landscape

Rotate to portrait

Start in Portrait

Rotate to Landscape.


#7

I have just tested on A Huawei G620S-L01 running Android 4.4.4 and works as expected, so definatley an issue with iPhone iOS.

It is not iOS device specific either. Same issue on iPad 2017 also running iOS 11.2.6


#8

Bump, anyone got a solution to this.