Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-20772] Fix scrolling
(cherry picked from commit 9b947ae)
  • Loading branch information
daniel-beck authored and olivergondza committed Jan 21, 2014
1 parent fb738ea commit 7b9b7ac
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions core/src/main/resources/lib/form/apply/apply.js
Expand Up @@ -49,8 +49,18 @@ Behaviour.specify("INPUT.apply-button", 'apply', 0, function (e) {
}
$(containerId).appendChild(error);
var r = YAHOO.util.Dom.getClientRegion();
responseDialog.cfg.setProperty("width",r.width*3/4+"px");
responseDialog.cfg.setProperty("height",r.height*3/4+"px");

var contentHeight = r.height*3/4;
var dialogStyleHeight = contentHeight+40;
var contentWidth = r.width*3/4;
var dialogStyleWidth = contentWidth+20;

$(containerId).style.height = contentHeight+"px";
$(containerId).style.width = contentWidth+"px";
$(containerId).style.overflow = "scroll";

responseDialog.cfg.setProperty("width", dialogStyleWidth+"px");
responseDialog.cfg.setProperty("height", dialogStyleHeight+"px");
responseDialog.center();
responseDialog.show();
}
Expand Down

0 comments on commit 7b9b7ac

Please sign in to comment.