浏览代码

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

Enrico Berti 8 年之前
父节点
当前提交
ab099cf
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);