Browse Source

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

Enrico Berti 7 years ago
parent
commit
e59323e183

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

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