Commit 85a72f8f authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1856759: gridstack: change js code not supported in IE11"

parents eaac6e02 9dccb9da
......@@ -186,7 +186,7 @@ function updateTranslatedGridRows(blocks) {
else {
height[block.row][block.column] += realheight;
}
maxheight[block.row] = Math.max(...height[block.row]);
maxheight[block.row] = Math.max.apply(null, height[block.row]);
});
// update all blocks together
moveBlocks(updatedGrid);
......@@ -216,7 +216,7 @@ function updateBlockSizes(grid) {
});
}
function addNewWidget(blockContent, blockId, dimensions, grid, blocktypeclass, minWidth=null, minHeight=null) {
function addNewWidget(blockContent, blockId, dimensions, grid, blocktypeclass, minWidth, minHeight) {
el = grid.addWidget(
blockContent,
dimensions.positionx,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment