From: Stas Vilchik Date: Tue, 23 Dec 2014 15:57:10 +0000 (+0100) Subject: SONAR-5820 Fix scrolling issues X-Git-Tag: latest-silver-master-#65~422 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1f404fb3671288fdbbe84d7ffd3c0d1194310201;p=sonarqube.git SONAR-5820 Fix scrolling issues --- diff --git a/server/sonar-web/src/main/js/coding-rules/rule-details-view.js b/server/sonar-web/src/main/js/coding-rules/rule-details-view.js index 2fa6378a677..2e41d7663fa 100644 --- a/server/sonar-web/src/main/js/coding-rules/rule-details-view.js +++ b/server/sonar-web/src/main/js/coding-rules/rule-details-view.js @@ -40,6 +40,7 @@ define([ model: this.model, collection: new Backbone.Collection(this.getQualityProfiles()) })); + this.$el.scrollParent().scrollTop(30); }, onClose: function () { diff --git a/server/sonar-web/src/main/less/coding-rules.less b/server/sonar-web/src/main/less/coding-rules.less index 295a1854e56..ec2e6440afe 100644 --- a/server/sonar-web/src/main/less/coding-rules.less +++ b/server/sonar-web/src/main/less/coding-rules.less @@ -64,7 +64,7 @@ } .coding-rules-detail-header { - margin-bottom: 0; + margin: 0; padding-right: 100px; font-size: 18px; } @@ -399,7 +399,7 @@ textarea.coding-rules-markdown-description { .coding-rules-detail-custom-rule-key { display:inline-block; max-width: 460px; - whitespace: nowrap; + white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } diff --git a/server/sonar-web/src/main/less/components/search-navigator.less b/server/sonar-web/src/main/less/components/search-navigator.less index e3ea4d51e1b..de18e6d1451 100644 --- a/server/sonar-web/src/main/less/components/search-navigator.less +++ b/server/sonar-web/src/main/less/components/search-navigator.less @@ -13,10 +13,11 @@ z-index: 4; top: 0; left: @sideWidth; - right: 0px; + right: 0; } - .search-navigator-workspace-list { + .search-navigator-workspace-list, + .search-navigator-workspace-details { padding-top: 22px + 5px + 5px + 1px + 10px; } @@ -297,6 +298,7 @@ .search-navigator-workspace-details { display: none; + min-height: 100vh; padding: 0 10px; }