Browse Source

HUE-8392 [oozie] Cannot add more actions using drag & drop from actions bar in the Oozie editor after adding around 3 actions

(cherry picked from commit b8872487cd7bd62cd34b19a4d260f4d3d130a255)
Roohi 7 years ago
parent
commit
f96135e0c0
1 changed files with 9 additions and 6 deletions
  1. 9 6
      apps/oozie/src/oozie/templates/editor2/workflow_editor.mako

+ 9 - 6
apps/oozie/src/oozie/templates/editor2/workflow_editor.mako

@@ -678,19 +678,22 @@ ${ utils.submit_popup_event() }
     _el.css("zIndex", "1032");
     var lastSeenPosition = _el.position();
     var _width = _el.width();
-
+    %if is_embeddable:
+    lastSeenPosition.left = lastSeenPosition.left + 290;
+    _el.css("position", "fixed");
+    $("#addActionDemiModal").css("position", "fixed");
+    %else:
     _el.css("position", "absolute");
+    %endif
+
     _el.css({
       "top": lastSeenPosition.top + "px",
       "left": lastSeenPosition.left + "px",
       "width": 450
     });
+
     $("#addActionDemiModal").width(_el.width()).css("top", _el.position().top + 25).css("left", _el.position().left).modal("show");
-    %if is_embeddable:
-    $(".page-content").animate({
-    scrollTop: $("#addActionDemiModal").offset().top - 200
-    }, 200);
-    %else:
+    %if not is_embeddable:
     $("html, body").animate({
       scrollTop: $("#addActionDemiModal").offset().top - 200
     }, 200);