@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.
@@ -47,7 +47,7 @@ import {
47
47
  settleRun,
48
48
  stackSlugRule,
49
49
  wireEndText
50
- } from "../chunk-ELOBZOVE.mjs";
50
+ } from "../chunk-QH7BZCFZ.mjs";
51
51
  export {
52
52
  ApplyUnobservedError,
53
53
  AutosaveEndedError,
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
- const borders = menu.offsetHeight - menu.clientHeight;
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);