We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d091e3 commit 4dce187Copy full SHA for 4dce187
src/helpers/utils.js
@@ -111,15 +111,6 @@ export function compact(layout: Layout, verticalCompact: Boolean): Layout {
111
* Compact an item in the layout.
112
*/
113
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
-
123
if (verticalCompact) {
124
// Move the element up as far as it can go without colliding.
125
while (l.y > 0 && !getFirstCollision(compareWith, l)) {
0 commit comments