瀏覽代碼

[oozie] Remove autoscroll

Enrico Berti 11 年之前
父節點
當前提交
857a7930f2
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      apps/oozie/src/oozie/templates/editor/workflow_editor.mako

+ 1 - 5
apps/oozie/src/oozie/templates/editor/workflow_editor.mako

@@ -1686,11 +1686,7 @@ ${ dashboard.import_bindings() }
         });
         _el.animate({
           "width": _width < $(window).width()/2 ? $(window).width()/2 : _width
-        }, 200, function () {
-          if ($(document).width() > $(window).width()) {
-            $(document).scrollLeft($(document).width() - $(window).width());
-          }
-        });
+        }, 200);
         _el.find(".prop-editor").show();
 
         $("#exposeOverlay").fadeIn(300);