Skip to content
Permalink
Browse files

[JENKINS-20772] Fix scrolling

(cherry picked from commit 9b947ae)
  • Loading branch information
daniel-beck authored and olivergondza committed Dec 23, 2013
1 parent fb738ea commit 7b9b7ac162d9ae5acbb313d08b69a8f71ab08804
Showing with 12 additions and 2 deletions.
  1. +12 −2 core/src/main/resources/lib/form/apply/apply.js
@@ -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();
}

0 comments on commit 7b9b7ac

Please sign in to comment.
You can’t perform that action at this time.