From 9b947ae8a239023482b8dcdec97d37425c42be8c Mon Sep 17 00:00:00 2001 From: Daniel Beck Date: Mon, 23 Dec 2013 23:46:01 +0100 Subject: [PATCH] [JENKINS-20772] Fix scrolling --- core/src/main/resources/lib/form/apply/apply.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/core/src/main/resources/lib/form/apply/apply.js b/core/src/main/resources/lib/form/apply/apply.js index be6ddf57ac..9349740e75 100644 --- a/core/src/main/resources/lib/form/apply/apply.js +++ b/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(); } -- GitLab