aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/coffee
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-11-14 13:27:15 +0100
committerStas Vilchik <vilchiks@gmail.com>2014-11-14 13:27:15 +0100
commit4b56bfb1fa9b5278c030341a5f0770c0cc3fae68 (patch)
treeba739120ce2473822bca53ac49120b1162d9b535 /server/sonar-web/src/main/coffee
parentdba7c03de3a5ca77a2b718456be1513536f54ee8 (diff)
downloadsonarqube-4b56bfb1fa9b5278c030341a5f0770c0cc3fae68.tar.gz
sonarqube-4b56bfb1fa9b5278c030341a5f0770c0cc3fae68.zip
SONAR-5718 Fix clipping effect of the black header
Diffstat (limited to 'server/sonar-web/src/main/coffee')
-rw-r--r--server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee b/server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee
index 33339dbb453..47ff206ae9e 100644
--- a/server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee
+++ b/server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee
@@ -223,6 +223,9 @@ define [
line = issue.get('line') || 0
@model.set key: componentKey, issueLine: line
+ # disable clipping effect of the black header
+ @$el.addClass 'full-height'
+
@requestSources(line - LINES_AROUND, line + LINES_AROUND)
.done (data) =>
formattedSource = _.map data.sources, (item) => lineNumber: item[0], code: item[1]
@@ -235,7 +238,6 @@ define [
hasSourceBefore: firstLine > 1
hasSourceAfter: lastLine == line + LINES_AROUND
@render()
- @scrollToLine issue.get 'line'
@bindScrollEvents()
@requestIssues()
.fail =>
@@ -244,6 +246,9 @@ define [
formattedSource: []
@model.set hasSourceBefore: false, hasSourceAfter: false
@render()
+ .always =>
+ @$el.removeClass 'full-height'
+ @scrollToLine issue.get 'line'
requestSources: (lineFrom, lineTo) ->