Skip to content
Permalink
Browse files
Merge pull request #1077 from daniel-beck/better-apply-dialog
[JENKINS-20772] Fix scrolling
  • Loading branch information
jglick committed Dec 23, 2013
2 parents f2e2cbe + 9b947ae commit e292366f62e511323442a03abdcf020396cbc407
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 e292366

Please sign in to comment.