瀏覽代碼

Fix iframe height after load see BT#15166

Julio Montoya 6 年之前
父節點
當前提交
ae2091cdf0
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      main/document/showinframes.php

+ 2 - 1
main/document/showinframes.php

@@ -421,9 +421,10 @@ if ($execute_iframe) {
             echo "<script>
                     function waitToLoad() {     
                         $('#mainFrame').css('display', 'block');
+                        updateContentHeight();
                     }
                     $(function() {
-                        setTimeout(waitToLoad, 2000);
+                        setTimeout(waitToLoad, 2500);
                     });
             </script>";
         }