From: Stas Vilchik Date: Wed, 8 Oct 2014 09:10:38 +0000 (+0200) Subject: SONAR-5693 Issues on source code disappear while adding the code coverage X-Git-Tag: 4.5.1-RC1~75 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=35465a06d37695910963859c96d00e1b27f8a01b;p=sonarqube.git SONAR-5693 Issues on source code disappear while adding the code coverage --- 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);