pinokiod 3.124.0 → 3.125.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.124.0",
3
+ "version": "3.125.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -430,7 +430,17 @@
430
430
  return;
431
431
  }
432
432
  const rect = rootEl.getBoundingClientRect();
433
- const rootBounds = { x: 0, y: 0, width: rect.width, height: rect.height };
433
+ const computed = window.getComputedStyle(rootEl);
434
+ const paddingTop = Number.parseFloat(computed.paddingTop) || 0;
435
+ const paddingRight = Number.parseFloat(computed.paddingRight) || 0;
436
+ const paddingBottom = Number.parseFloat(computed.paddingBottom) || 0;
437
+ const paddingLeft = Number.parseFloat(computed.paddingLeft) || 0;
438
+ const rootBounds = {
439
+ x: paddingLeft,
440
+ y: paddingTop,
441
+ width: Math.max(0, rect.width - paddingLeft - paddingRight),
442
+ height: Math.max(0, rect.height - paddingTop - paddingBottom),
443
+ };
434
444
  const activeLeafIds = new Set();
435
445
  const activeSplitIds = new Set();
436
446