Browse Source

HUE-8223 [dashboard] Resize former sibling widgets after a row move

Enrico Berti 7 years ago
parent
commit
e59323e183
1 changed files with 3 additions and 0 deletions
  1. 3 0
      desktop/libs/dashboard/src/dashboard/templates/common_search.mako

+ 3 - 0
desktop/libs/dashboard/src/dashboard/templates/common_search.mako

@@ -4425,6 +4425,9 @@ $(document).ready(function () {
           }
 
           if (tempDraggableGridsterWidget) {
+            if (dimensions.row !== tempDraggableGridsterWidget.row()) {
+              autoResizeSiblings(tempDraggableGridsterWidget, true);
+            }
             $gridster.move_widget($(tempDraggableGridsterWidget.gridsterElement), -100, -100, resizeAndMoveSiblings); // temporarily move it off grid
           }
           else {