浏览代码

AMBARI-1275. Incorrect displaying "Background operations" window after changing state of component. (srimanth)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1439707 13f79535-47bb-0310-9956-ffa450edef68
Srimanth 12 年之前
父节点
当前提交
7df660d85d
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 3 0
      CHANGES.txt
  2. 1 1
      ambari-web/app/views/common/modal_popup.js

+ 3 - 0
CHANGES.txt

@@ -162,6 +162,9 @@ Trunk (unreleased changes):
 
 
  BUG FIXES
  BUG FIXES
 
 
+ AMBARI-1275. Incorrect displaying "Background operations" window after 
+ changing state of component. (srimanth)
+
  AMBARI-1273. Edit User: No error message is shown when the user does not 
  AMBARI-1273. Edit User: No error message is shown when the user does not 
  enter the correct "old password". (srimanth)
  enter the correct "old password". (srimanth)
 
 

+ 1 - 1
ambari-web/app/views/common/modal_popup.js

@@ -80,7 +80,7 @@ App.ModalPopup = Ember.View.extend({
     if(this.autoHeight){
     if(this.autoHeight){
       this._super();
       this._super();
       var block = this.$().find('#modal > .modal-body').first();
       var block = this.$().find('#modal > .modal-body').first();
-      block.css('max-height', $(window).height()- block.offset().top - 300); // fix popup height
+      block.css('max-height', $(window).height() - block.offset().top - 300 + $(window).scrollTop()); // fix popup height
     }
     }
   },
   },