diff --git a/package.json b/package.json index f085f082726..3154b7f107f 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "company": "Grafana Labs" }, "name": "grafana", - "version": "5.1.2", + "version": "5.1.3", "repository": { "type": "git", "url": "http://github.com/grafana/grafana.git" diff --git a/public/app/plugins/panel/graph/legend.ts b/public/app/plugins/panel/graph/legend.ts index 6b6c89444dc..af61db396ba 100644 --- a/public/app/plugins/panel/graph/legend.ts +++ b/public/app/plugins/panel/graph/legend.ts @@ -287,6 +287,10 @@ module.directive('graphLegend', function(popoverSrv, $timeout) { destroyScrollbar(); legendScrollbar = baron(scrollbarParams); } + + // #11830 - compensates for Firefox scrollbar calculation error in the baron framework + scroller[0].style.marginRight = '-' + (scroller[0].offsetWidth - scroller[0].clientWidth) + 'px'; + legendScrollbar.scroll(); } diff --git a/public/sass/pages/_dashboard.scss b/public/sass/pages/_dashboard.scss index 471e90ed9cf..fb947f176dd 100644 --- a/public/sass/pages/_dashboard.scss +++ b/public/sass/pages/_dashboard.scss @@ -44,10 +44,18 @@ div.flot-text { padding: $panel-padding; height: calc(100% - 27px); position: relative; + // Fixes scrolling on mobile devices overflow: auto; } +// For larger screens, set back to hidden to avoid double scroll bars +@include media-breakpoint-up(md) { + .panel-content { + overflow: hidden; + } +} + .panel-title-container { min-height: 9px; cursor: move;