aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-02-05 17:06:26 +0100
committerJulien Lancelot <julien.lancelot@gmail.com>2013-02-05 17:06:26 +0100
commit749a816d3b82307d33a15e31e827f33d542b9589 (patch)
treeef0346bbd6d3a88acba5df67c023bd6657e042b8 /sonar-server/src
parent6be284ff24aabb4e766bfc72749ffc8810f765dc (diff)
downloadsonarqube-749a816d3b82307d33a15e31e827f33d542b9589.tar.gz
sonarqube-749a816d3b82307d33a15e31e827f33d542b9589.zip
SONAR-4093 Fix height issue
Diffstat (limited to 'sonar-server/src')
-rw-r--r--sonar-server/src/main/webapp/javascripts/application.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/javascripts/application.js b/sonar-server/src/main/webapp/javascripts/application.js
index d8bb4111e0b..bb73ecefc09 100644
--- a/sonar-server/src/main/webapp/javascripts/application.js
+++ b/sonar-server/src/main/webapp/javascripts/application.js
@@ -368,6 +368,8 @@ function openAccordionItem(url, elt, updateCurrentElement) {
} else {
$j("#accordion-panel").append(html);
}
+ var newHeight = $j("#accordion-panel").height() + currentElement.height();
+ $j("#accordion-panel").height(previousHeight > newHeight ? previousHeight : newHeight);
}).error(function () {
alert("Server error. Please contact your administrator.");