mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-22 01:07:56 +01:00
small change improving the resizing on iPads
This commit is contained in:
parent
39157ab392
commit
aa82d6daa8
@ -26,6 +26,9 @@ function doClientAndOrientationStuff() {
|
|||||||
var ww = 0; //get proper width
|
var ww = 0; //get proper width
|
||||||
if (window.screen.availWidth) {
|
if (window.screen.availWidth) {
|
||||||
ww = window.screen.availWidth;
|
ww = window.screen.availWidth;
|
||||||
|
if( /iPhone|iPad|iPod/i.test(navigator.userAgent) ) {
|
||||||
|
ww = window.innerWidth;
|
||||||
|
}
|
||||||
} else if($(window).width()) {
|
} else if($(window).width()) {
|
||||||
ww = $(window).width();
|
ww = $(window).width();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user