Browse Source

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

Enrico Berti 7 years ago
parent
commit
fe027d8484

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

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