提交 9b947ae8 编写于 作者: D Daniel Beck

[JENKINS-20772] Fix scrolling

上级 b856cc24
...@@ -49,8 +49,18 @@ Behaviour.specify("INPUT.apply-button", 'apply', 0, function (e) { ...@@ -49,8 +49,18 @@ Behaviour.specify("INPUT.apply-button", 'apply', 0, function (e) {
} }
$(containerId).appendChild(error); $(containerId).appendChild(error);
var r = YAHOO.util.Dom.getClientRegion(); 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.center();
responseDialog.show(); responseDialog.show();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册