Browse Source

HUE-6029 [core] NiceScroll should hide just when the mouse leaves the scrolling element

Enrico Berti 8 years ago
parent
commit
430b5d3

+ 2 - 1
desktop/core/src/desktop/static/desktop/js/jquery.filechooser.js

@@ -376,7 +376,8 @@
             mousescrollstep: 60,
             mousescrollstep: 60,
             railhoffset: {
             railhoffset: {
               top: 2
               top: 2
-            }
+            },
+            autohidemode: "leave"
           });
           });
           $scrollingBreadcrumbs.parents('.modal').find('.nicescroll-rails-vr').remove();
           $scrollingBreadcrumbs.parents('.modal').find('.nicescroll-rails-vr').remove();
         }
         }

+ 2 - 1
desktop/core/src/desktop/static/desktop/js/jquery.notify.js

@@ -86,7 +86,8 @@
         cursorminheight: 20,
         cursorminheight: 20,
         horizrailenabled: false,
         horizrailenabled: false,
         zindex: 14000,
         zindex: 14000,
-        railoffset: {left: 5}
+        railoffset: {left: 5},
+        autohidemode: 'leave'
       });
       });
 
 
       if (_this.options.css != null) {
       if (_this.options.css != null) {

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

@@ -4361,7 +4361,8 @@
             scrollspeed: 1,
             scrollspeed: 1,
             mousescrollstep: 60,
             mousescrollstep: 60,
             cursorminheight: options.cursorminheight || 20,
             cursorminheight: options.cursorminheight || 20,
-            horizrailenabled: options.horizrailenabled || false
+            horizrailenabled: options.horizrailenabled || false,
+            autohidemode: "leave"
           });
           });
         }
         }
       } else {
       } else {
@@ -4750,7 +4751,8 @@
           mousescrollstep: 60,
           mousescrollstep: 60,
           scrollspeed: 1,
           scrollspeed: 1,
           cursorminheight: options.cursorminheight || 20,
           cursorminheight: options.cursorminheight || 20,
-          horizrailenabled: typeof options.horizrailenabled !== 'undefined' ? options.horizrailenabled : true
+          horizrailenabled: typeof options.horizrailenabled !== 'undefined' ? options.horizrailenabled : true,
+          autohidemode: "leave"
         });
         });
         $(element).addClass('nicescrollified');
         $(element).addClass('nicescrollified');
         ko.utils.domNodeDisposal.addDisposeCallback(element, niceScroll.remove);
         ko.utils.domNodeDisposal.addDisposeCallback(element, niceScroll.remove);

+ 2 - 1
desktop/core/src/desktop/templates/sql_context_popover.mako

@@ -801,7 +801,8 @@ from metadata.conf import has_navigator
             scrollspeed: 100,
             scrollspeed: 100,
             mousescrollstep: 60,
             mousescrollstep: 60,
             cursorminheight: 20,
             cursorminheight: 20,
-            horizrailenabled: true
+            horizrailenabled: true,
+            autohidemode: "leave"
           });
           });
 
 
           if (data && data.rows) {
           if (data && data.rows) {