Skip to content

Commit 4dce187

Browse files
authored
Revert "Update utils.js (jbaysolutions#677)" (jbaysolutions#693)
This reverts commit 833a5c2.
1 parent 8d091e3 commit 4dce187

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/helpers/utils.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,6 @@ export function compact(layout: Layout, verticalCompact: Boolean): Layout {
111111
* Compact an item in the layout.
112112
*/
113113
export function compactItem(compareWith: Layout, l: LayoutItem, verticalCompact: boolean): LayoutItem {
114-
// move to bottom
115-
let maxY = 0;
116-
for (let i = 0, len = compareWith.length; i < len; i++) {
117-
if(maxY < compareWith[i].y) {
118-
maxY = compareWith[i].y;
119-
}
120-
}
121-
l.y = Math.max(l.y, maxY);
122-
123114
if (verticalCompact) {
124115
// Move the element up as far as it can go without colliding.
125116
while (l.y > 0 && !getFirstCollision(compareWith, l)) {

0 commit comments

Comments
 (0)