From 8d816eb573448273842e750de6253df685ef4b20 Mon Sep 17 00:00:00 2001 From: blackcatsandy <> Date: Fri, 5 Jun 2015 17:41:46 +0000 Subject: [PATCH] Responsive iOS 6 Theme - ios6.js needs to be added in the config. Viewport changes http://forum.fhem.de/index.php/topic,23406.msg166953.html#msg166953 git-svn-id: https://svn.fhem.de/fhem/trunk@8695 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/ios6.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/fhem/www/pgm2/ios6.js b/fhem/www/pgm2/ios6.js index b22d21bd4..e9ddb673c 100644 --- a/fhem/www/pgm2/ios6.js +++ b/fhem/www/pgm2/ios6.js @@ -70,7 +70,8 @@ $(document).ready(function() { /* DOM manipulation */ // init viewport - $('head').append(''); + $('meta[name="viewport"]').remove(); + $('head').append(''); var ismobile = (/iphone|ipod|android|blackberry|opera|mini|windows\sce|palm|smartphone|iemobile/i.test(navigator.userAgent.toLowerCase())); var istablet = (/ipad|android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i.test(navigator.userAgent.toLowerCase())); @@ -119,13 +120,8 @@ $(document).ready(function() { } }); $(window).bind('orientationchange', function(event) { + $(window).trigger('resize'); //alert("orientationchange width: "+window.innerWidth+" height: "+window.innerHeight); - recalculateStyleHeight(); - if ($("body").width() < window.innerHeight) { - recalculateStyleWithoutMenu(); - } else { - recalculateStyleWithMenu(); - } }); // Touch - Color picker $(document).on('touchstart', function(e) { @@ -137,4 +133,6 @@ $(document).ready(function() { container.remove(); } }); -}); \ No newline at end of file + + +});