From 4bd563ff203ac2b7abf0dae2d7c197d327c47ea9 Mon Sep 17 00:00:00 2001 From: Blackcat Date: Sun, 17 Mar 2019 13:30:39 +0000 Subject: [PATCH] new ios6 Style fixes: - ios6touchpad.js calculation of columns when menu is toggled - readings column fix git-svn-id: https://svn.fhem.de/fhem/trunk@18943 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/ios6touchpad.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fhem/www/pgm2/ios6touchpad.js b/fhem/www/pgm2/ios6touchpad.js index f935353f7..4ebcf96fa 100644 --- a/fhem/www/pgm2/ios6touchpad.js +++ b/fhem/www/pgm2/ios6touchpad.js @@ -65,8 +65,12 @@ $(document).ready(function() { var toggleMenuOnFHEMIcon = function() { if ($("body").hasClass("hideMenu")) { recalculateStyleWithMenu(); + resetcolumns(); + calccolumns(); } else { recalculateStyleWithoutMenu(); + resetcolumns(); + calccolumns(); } }; @@ -135,7 +139,7 @@ $(document).ready(function() { // Berechnung der hinteren Spalten maxwidthtd.forEach(function(column, index){ if(column > 260) { - column = 260; + maxwidthtd[index] = 260; } innertablewidth=innertablewidth-column-10; });