浏览代码

HUE-8386 [dashboard] The dropdown menu is hidden behind the widget list

Enrico Berti 7 年之前
父节点
当前提交
4e89bca072

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

@@ -6534,6 +6534,7 @@
       var options = valueAccessor() || {};
       var scrollable = options.scrollable ? options.scrollable : window;
       var triggerAdjust = options.triggerAdjust || 0;
+      var zIndex = options.zIndex || 1000;
       $(element).addClass('dockable');
 
       var initialTopPosition = -1;
@@ -6550,7 +6551,7 @@
           ghost.height($(element).outerHeight() + (options.jumpCorrection || 0));
         }
         if ($(scrollable).scrollTop() + triggerAdjust > initialTopPosition) {
-          $(element).attr('style', 'position: fixed!important; top: ' + options.topSnap + '; width: ' + initialSize.w + 'px!important');
+          $(element).attr('style', 'position: fixed!important; top: ' + options.topSnap + '; width: ' + initialSize.w + 'px!important; z-index: ' + zIndex);
           ghost.show();
         }
         else {

+ 1 - 1
desktop/libs/dashboard/src/dashboard/templates/common_search.mako

@@ -51,7 +51,7 @@ from dashboard.conf import USE_GRIDSTER, USE_NEW_ADD_METHOD, HAS_REPORT_ENABLED,
     </div>
   </form>
 %else:
-<div class="search-bar" data-bind="visible: !$root.isPlayerMode(), dockable: { scrollable: '.page-content', jumpCorrection: 0, topSnap: '${ conf.CUSTOM.BANNER_TOP_HTML.get() and "78px" or "50px" }', triggerAdjust: 50 }, event: { mouseover: function(){ if (columns().length && isGridster()) { showPlusButtonHint(true); } } }">
+<div class="search-bar" data-bind="visible: !$root.isPlayerMode(), dockable: { scrollable: '.page-content', jumpCorrection: 0, topSnap: '${ conf.CUSTOM.BANNER_TOP_HTML.get() and "78px" or "50px" }', triggerAdjust: 50, zIndex: 1001 }, event: { mouseover: function(){ if (columns().length && isGridster()) { showPlusButtonHint(true); } } }">
   <div class="search-bar-header">
     <div class="search-bar-logo">
       <div class="app-header">