Pārlūkot izejas kodu

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

Daniel Barreto 11 gadi atpakaļ
vecāks
revīzija
512633e678
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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.