Browse Source

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 years ago
parent
commit
7df660d85d
2 changed files with 4 additions and 1 deletions
  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
 
+ 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 
  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){
       this._super();
       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
     }
   },