@lace-cloud/canvas 0.41.0 → 0.42.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/dist/{chunk-ELOBZOVE.mjs → chunk-QH7BZCFZ.mjs} +1 -1
- package/dist/{chunk-ELOBZOVE.mjs.map → chunk-QH7BZCFZ.mjs.map} +1 -1
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.mjs +1 -1
- package/dist/index.cjs +1 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/engine/index.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -599,8 +599,7 @@ var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
|
599
599
|
var atPoint = (x, y) => ({ left: x, right: x, top: y, bottom: y });
|
|
600
600
|
function naturalSize(menu) {
|
|
601
601
|
const box = menu.getBoundingClientRect();
|
|
602
|
-
|
|
603
|
-
return { width: box.width, height: Math.max(box.height, menu.scrollHeight + borders) };
|
|
602
|
+
return { width: box.width, height: Math.max(box.height, (0, import_ui3.naturalHeight)(menu)) };
|
|
604
603
|
}
|
|
605
604
|
function samePlacement(a, b) {
|
|
606
605
|
return a === b || a !== null && b !== null && Object.is(a.left, b.left) && Object.is(a.top, b.top) && Object.is(a.maxHeight, b.maxHeight);
|