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 +1 -1
- package/server/public/layout.js +11 -1
package/package.json
CHANGED
package/server/public/layout.js
CHANGED
|
@@ -430,7 +430,17 @@
|
|
|
430
430
|
return;
|
|
431
431
|
}
|
|
432
432
|
const rect = rootEl.getBoundingClientRect();
|
|
433
|
-
const
|
|
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
|
|