Переглянути джерело

Merge pull request #1354 from aragonc/1.11.x

iframe height hot potatoes
Alex Aragon Calixto 8 роки тому
батько
коміт
c748a33fb1
1 змінених файлів з 3 додано та 6 видалено
  1. 3 6
      main/exercise/showinframes.php

+ 3 - 6
main/exercise/showinframes.php

@@ -78,12 +78,9 @@ $noPHP_SELF = true;
 $htmlHeadXtra[] = '
 <script>
     $(document).ready( function(){
-        var height = $(this).innerHeight( - 20;
-        if (height < 0) {
-            height  = "95%";
-        }
-        $("#hotpotatoe").css("height", height);
-    });
+var height = $(this).innerHeight() - 20;
+$("#hotpotatoe").css("height", height)
+});
 </script>';
 
 $interbreadcrumb[]= array ("url"=>"./exercise.php", "name"=> get_lang('Exercises'));