Browse Source

HUE-6077 [frontend] Oozie workflow add action shouldn't be wrongly placed on drop

Enrico Berti 8 years ago
parent
commit
ab099cf36f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/oozie/src/oozie/templates/editor2/workflow_editor.mako

+ 1 - 1
apps/oozie/src/oozie/templates/editor2/workflow_editor.mako

@@ -678,7 +678,7 @@ ${ dashboard.import_bindings() }
       "left": lastSeenPosition.left + "px",
       "width": 450
     });
-    $("#addActionDemiModal").width(_el.width()).css("top", _el.offset().top + 25).css("left", _el.offset().left).modal("show");
+    $("#addActionDemiModal").width(_el.width()).css("top", _el.position().top + 25).css("left", _el.position().left).modal("show");
     $("html, body").animate({
       scrollTop: $("#addActionDemiModal").offset().top - 200
     }, 200);