You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When keepOrder is turned on it seems like everything gets "columnized" since all blocks resized to the same width, including small blocks that greatly extended. To fix I modified the keepOrder check in the js to only resize when free area is running out.
---- Starting at line 645 in my version
if (runtime.keepOrder) {
block = items.shift();
if (block.width > freeArea.width) {
if (runtime.minWoB > freeArea.width) {
items.unshift(block);
break;
}
block.resize = true;
}
} else {
------for reference here is my initialization params
wall.reset({
selector: '.cell',
animate: true,
cellW: 50,
cellH: 10,
keepOrder: true,
onResize: function () {
wall.fitWidth();
}
});
Since I am only doing fixwidth, I am sure I did not account for fixheight so I did not try to make the changes myself. This makes all but the last block on the line holds its size, then the last block is sized down to fit. I would like it if all the blocks and/or white space could be slightly resized to fit instead so let me know if I have something setup wrong or if there is a better way to fix.
The text was updated successfully, but these errors were encountered:
When keepOrder is turned on it seems like everything gets "columnized" since all blocks resized to the same width, including small blocks that greatly extended. To fix I modified the keepOrder check in the js to only resize when free area is running out.
---- Starting at line 645 in my version
if (runtime.keepOrder) {
block = items.shift();
------for reference here is my initialization params
wall.reset({
selector: '.cell',
animate: true,
cellW: 50,
cellH: 10,
keepOrder: true,
onResize: function () {
wall.fitWidth();
}
});
Since I am only doing fixwidth, I am sure I did not account for fixheight so I did not try to make the changes myself. This makes all but the last block on the line holds its size, then the last block is sized down to fit. I would like it if all the blocks and/or white space could be slightly resized to fit instead so let me know if I have something setup wrong or if there is a better way to fix.
The text was updated successfully, but these errors were encountered: