]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5693 Issues on source code disappear while adding the code coverage
authorStas Vilchik <vilchiks@gmail.com>
Wed, 8 Oct 2014 09:10:38 +0000 (11:10 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 8 Oct 2014 09:10:46 +0000 (11:10 +0200)
server/sonar-web/src/main/coffee/component-viewer/main.coffee
server/sonar-web/src/main/js/issues/app.js

index 15e2a13d138a8dc28523e15e437de702a465d5b1..e6da45caa2f2b316d79a254281f5215e633e2b5d 100644 (file)
@@ -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'
index 43411efffb2019996d20ee51d654676531d0cdf4..861636f8089fa898d0ccc7d4d44c6a1f951fddd0 100644 (file)
@@ -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);