Explorar el Código

[oozie] Redraw arrows on window resize

Enrico Berti hace 11 años
padre
commit
210949f
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9 0
      apps/oozie/src/oozie/templates/editor/workflow_editor.mako

+ 9 - 0
apps/oozie/src/oozie/templates/editor/workflow_editor.mako

@@ -875,6 +875,15 @@ ${ dashboard.import_bindings() }
 
   $(document).ready(function(){
     renderChangeables();
+
+    var resizeTimeout = -1;
+    $(window).on("resize", function () {
+      window.clearTimeout(resizeTimeout);
+      resizeTimeout = window.setTimeout(function () {
+        renderChangeables();
+      }, 200);
+    });
+
   });
 
 </script>