Преглед на файлове

HUE-5546 [responsive] Avoid horizontal scrolling on the editor

Enrico Berti преди 9 години
родител
ревизия
2f918e8
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1 0
      desktop/core/src/desktop/static/desktop/css/responsive.css
  2. 1 1
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 1 - 0
desktop/core/src/desktop/static/desktop/css/responsive.css

@@ -301,6 +301,7 @@ body {
   -ms-flex: 1;
   flex: 1;
   position: relative;
+  overflow-x: hidden!important;
 }
 
 .page-content .content-panel {

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -4544,7 +4544,7 @@
           mousescrollstep: 60,
           scrollspeed: 1,
           cursorminheight: options.cursorminheight || 20,
-          horizrailenabled: options.horizrailenabled || true
+          horizrailenabled: typeof options.horizrailenabled !== 'undefined' ? options.horizrailenabled : true
         });
         $(element).addClass('nicescrollified');
       }