aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-10-08 11:10:38 +0200
committerStas Vilchik <vilchiks@gmail.com>2014-10-08 11:10:46 +0200
commit35465a06d37695910963859c96d00e1b27f8a01b (patch)
tree57e2d6a43db05edabb21c1a56d149d4011fd2897 /server
parent00a71853b7b223005c429e7582ee01b59f5ff50f (diff)
downloadsonarqube-35465a06d37695910963859c96d00e1b27f8a01b.tar.gz
sonarqube-35465a06d37695910963859c96d00e1b27f8a01b.zip
SONAR-5693 Issues on source code disappear while adding the code coverage
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/coffee/component-viewer/main.coffee2
-rw-r--r--server/sonar-web/src/main/js/issues/app.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/coffee/component-viewer/main.coffee b/server/sonar-web/src/main/coffee/component-viewer/main.coffee
index 15e2a13d138..e6da45caa2f 100644
--- a/server/sonar-web/src/main/coffee/component-viewer/main.coffee
+++ b/server/sonar-web/src/main/coffee/component-viewer/main.coffee
@@ -131,7 +131,7 @@ define [
width = @elementToFit.width()
height = @elementToFit.height()
- availableWidth = width - workspace.outerWidth(true)
+ availableWidth = width - workspace.outerWidth(true) - 20
availableHeight = height - @$(@headerRegion.$el).outerHeight(true)
source.removeClass 'overflow'
diff --git a/server/sonar-web/src/main/js/issues/app.js b/server/sonar-web/src/main/js/issues/app.js
index 43411efffb2..861636f8089 100644
--- a/server/sonar-web/src/main/js/issues/app.js
+++ b/server/sonar-web/src/main/js/issues/app.js
@@ -371,7 +371,7 @@ requirejs(
var detailsEl = jQuery('.navigator-details'),
detailsWidth = jQuery(window).width() - detailsEl.offset().left -
- parseInt(detailsEl.css('margin-right'), 10),
+ parseInt(detailsEl.css('margin-right'), 10) - 20,
detailsHeight = jQuery(window).height() - detailsEl.offset().top -
parseInt(detailsEl.css('margin-bottom'), 10) - footerHeight;
detailsEl.width(detailsWidth).height(detailsHeight);