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; });