Skip to content
Permalink
Browse files
[JENKINS-20772] Fix scrolling
  • Loading branch information
daniel-beck committed Dec 23, 2013
1 parent b856cc2 commit 9b947ae8a239023482b8dcdec97d37425c42be8c
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 9b947ae

Please sign in to comment.