Explorar o código

Update lp view to resize right when return from control view refs #6033 #7077

Daniel Barreto %!s(int64=11) %!d(string=hai) anos
pai
achega
512633e678
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      main/newscorm/lp_view.php

+ 2 - 2
main/newscorm/lp_view.php

@@ -487,8 +487,8 @@ if ($is_allowed_to_edit) {
             updateContentHeight();
         });
     });
-    //window.onload = updateContentHeight;
-    //window.onresize = updateContentHeight;
+    window.onload = updateContentHeight();
+    window.onresize = updateContentHeight();
 </script>
 <?php
 // Restore a global setting.