Просмотр исходного кода

scroll: temporary fix for double scrollbar issue

If #11939 is not merged in the patch release, then
this is a temporary fix for 5.1.3. It sets overflow to
hidden for larger screens and keeps the overflow set to
auto for mobiles and tablets.

Fixes #11937
Daniel Lee 7 лет назад
Родитель
Сommit
567fec402e
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      public/sass/pages/_dashboard.scss

+ 8 - 0
public/sass/pages/_dashboard.scss

@@ -44,10 +44,18 @@ div.flot-text {
   padding: $panel-padding;
   padding: $panel-padding;
   height: calc(100% - 27px);
   height: calc(100% - 27px);
   position: relative;
   position: relative;
+
   // Fixes scrolling on mobile devices
   // Fixes scrolling on mobile devices
   overflow: auto;
   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 {
 .panel-title-container {
   min-height: 9px;
   min-height: 9px;
   cursor: move;
   cursor: move;