JQuery package for mobile applications showing orientation change in android

I am developing a cross-platform mobile application JQuery, in which when the orientation changes it shows a white patch. Below is the code I used to change the orientation.

window.onorientationchange = function () { setTimeout(changeOrientation, 200); } changeOrientation :function() { //here goes my code for screen display on orientation. } 

so I could not find how to enable this white patch when changing orientation. Thanks at Advance

+4
source share
1 answer

I suspect that you are doing this in a web browser inside your Android application and that your application does not handle orientation changes.

Either this, or the browser has the same problem, or your web page has flaws. A regular jquery web page should not have this problem, the website just automatically resizes, then the browser window (or device orientation) changes. Does your page have CSS or JS code that sets the element widths?

What browsers did you use on Android? Does the latest version of Android Chrome have the same problem?

0
source

Source: https://habr.com/ru/post/1485641/


All Articles