Ver Fonte

[oozie] Redraw arrows on window resize

Enrico Berti há 11 anos atrás
pai
commit
210949f

+ 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>