cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <>
Subject [jira] [Commented] (CB-13038) Device Rotate on android triggered out of order
Date Fri, 28 Jul 2017 21:28:03 GMT


Joe Bowser commented on CB-13038:

Yes, use CSS for style and layout.  CSS media queries will always be faster than listening
to events in Javascript.  Using JS for layout is bad practice, since that's not what it's
for.  Also, I'd recommend using a more lightweight framework than jQuery for Javascript.

> Device Rotate on android triggered out of order
> -----------------------------------------------
>                 Key: CB-13038
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-android
>         Environment: - The latest version of Cordova. 
> - Used Cordova create app to generate an application without all extras to debug
> - used jQuery as well 
> -OS: Apple iMac 
>            Reporter: Nicole Kelley
>            Assignee: Joe Bowser
>            Priority: Minor
> When developing for mobile apps, specifically Android, when the device rotates to landscape
the orientation change is triggering before the content has a chance to adjust to the change,
causing a delay in content rendering in the correct mode. Usually, the content does not change
or changes the content to the opposite of the desired mode. For example, the landscape will
show portrait or portrait will show landscape.  
> I have been able to fix the issue by setting a timeout function to delay the content
change to wait for the device to understand which mode it is in (landscape or portrait) and
then adjust the content to such mode. 

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message