sheet-happens 0.0.29 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1561,12 +1561,12 @@ var parsePastedHtml = function parsePastedHtml(selection, html) {
|
|
|
1561
1561
|
y++;
|
|
1562
1562
|
}
|
|
1563
1563
|
|
|
1564
|
-
right = Math.max(right, x);
|
|
1564
|
+
right = Math.max(right, x - 1);
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
1568
1568
|
|
|
1569
|
-
bottom = y;
|
|
1569
|
+
bottom = Math.max(top, y - 1);
|
|
1570
1570
|
return {
|
|
1571
1571
|
selection: [[left, top], [right, bottom]],
|
|
1572
1572
|
changes: changes
|
|
@@ -1706,8 +1706,9 @@ var makeCellLayout = function makeCellLayout(freeze, indent, offset, columns, ro
|
|
|
1706
1706
|
if (relative < frozen) {
|
|
1707
1707
|
return lookupIndex(relative, anchor);
|
|
1708
1708
|
} else {
|
|
1709
|
-
var base = getStart(offset);
|
|
1710
|
-
|
|
1709
|
+
var base = getStart(offset + freeze);
|
|
1710
|
+
var adjust = getStart(freeze) - getStart(0);
|
|
1711
|
+
return lookupIndex(base + relative - adjust, anchor);
|
|
1711
1712
|
}
|
|
1712
1713
|
};
|
|
1713
1714
|
|