Pārlūkot izejas kodu

HUE-6437 [editor] Make database list scroll with the page

Enrico Berti 8 gadi atpakaļ
vecāks
revīzija
c27aeb2

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


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

@@ -4839,7 +4839,8 @@
 
         if ($.fn.niceScroll && withNiceScroll) {
           hueUtils.initNiceScroll($container, {
-            horizrailenabled: false
+            horizrailenabled: false,
+            nativeparentscrolling: false
           });
         }
       } else {

+ 9 - 1
desktop/core/src/desktop/static/desktop/less/hue-cross-version.less

@@ -402,6 +402,14 @@ ul.errorlist {
   }
 }
 
+.hue-drop-down-container {
+  position: fixed;
+  z-index: 2;
+  &.open {
+    position: absolute;
+  }
+}
+
 .hue-drop-down-active span {
   font-size: 12px;
   font-weight: lighter;
@@ -411,8 +419,8 @@ ul.errorlist {
   width: 175px !important;
   height: 12px !important;
   margin-bottom: 0 !important;
-  padding-left: 4px !important;
   padding: 1px !important;
+  padding-left: 4px !important;
   font-size: 12px !important;
   border: 1px solid rgba(0,0,0,0.2) !important;
   border-radius: 2px !important;

+ 1 - 1
desktop/core/src/desktop/templates/ko_components.mako

@@ -34,7 +34,7 @@ from desktop.views import _ko
     <input class="hue-drop-down-input" type="text" data-bind="textInput: filter, attr: { 'placeHolder': value }, visible: dropDownVisible, style: { color: filterEdited() ? '#000' : '#AAA', 'min-height': '22px', 'margin-left': '10px' }"/>
     <i class="fa fa-caret-down"></i>
     <!-- /ko -->
-    <div data-bind="css: { 'open' : dropDownVisible }" style="position: fixed; z-index: 2">
+    <div class="hue-drop-down-container" data-bind="css: { 'open' : dropDownVisible }">
       <div class="dropdown-menu" data-bind="visible: filteredEntries().length > 0" style="overflow-y: scroll; width: 190px; margin-left: 10px; min-height: 34px; max-height: 200px;">
         <!-- ko if: foreachVisible -->
         <ul class="hue-inner-drop-down" data-bind="foreachVisible: { data: filteredEntries, minHeight: 34, container: '.dropdown-menu' }">

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels