Browse Source

HUE-8448 [report] Show the droppable placeholder before empty widgets too

Enrico Berti 7 years ago
parent
commit
799b8aa693
1 changed files with 2 additions and 1 deletions
  1. 2 1
      desktop/libs/dashboard/src/dashboard/templates/common_search.mako

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

@@ -3357,6 +3357,7 @@ var getDraggableOptions = function (options) {
         left: 5
       };
     }
+    setup.refreshPositions = true;
     return setup
   }
   else {
@@ -4410,7 +4411,7 @@ $(document).ready(function () {
       });
       $huePreviewHolder.show();
 
-      if (isEmptyWidget || isOverSelf) {
+      if ((isEmptyWidget && overlapZone !== 'N') || isOverSelf) {
         $huePreviewHolder.hide();
       }
     }