Commit 7577913f authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic

Bug 1856506: gridstack: skipping empty rows from old layout

when translating a page.

behatnotneeded

Change-Id: Ic7f1be21fc6797a77f49ae3c91a89fa118e3e11d
parent 44b91057
......@@ -148,9 +148,11 @@ function updateTranslatedGridRows(blocks) {
y = 0;
if (block.row > 1) {
// get the actual y value based on the max height of previus rows
// get the actual y value based on the max height of previous rows
for (var i = 1; i < block.row; i++) {
y += maxheight[i];
if (typeof(maxheight[i]) != 'undefined') {
y += maxheight[i];
}
}
}
if (typeof(height[block.row][block.column]) != 'undefined') {
......
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