@homebound/beam 3.0.2 → 3.0.3

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.cjs CHANGED
@@ -9839,7 +9839,14 @@ function OverlayTrigger(props) {
9839
9839
  isOpen: state.isOpen,
9840
9840
  onClose: state.close,
9841
9841
  placement: placement ? `bottom ${placement}` : "bottom left",
9842
- offset: showActiveBorder ? 4 : void 0
9842
+ offset: showActiveBorder ? 4 : void 0,
9843
+ // Prevents a react-aria ResizeObserver loop that prevents full scrollability in menus
9844
+ // that scroll when the trigger is inside a virtual GridTable with nested
9845
+ // scroll containers (e.g. stepper + layout + virtuoso), and the trigger is far
9846
+ // enough from the viewport edge that the calculated maxHeight differs significantly
9847
+ // This is a very specific set of circumstances that have appeared w/in blueprint
9848
+ // after we upgraded truss to v2
9849
+ maxHeight: window.visualViewport?.height ?? window.innerHeight
9843
9850
  });
9844
9851
  const tid = useTestIds(props, isTextButton(trigger) ? defaultTestId(labelOr(trigger, "overlayTrigger")) : isNavLinkButton(trigger) ? defaultTestId(trigger.navLabel) : isIconButton(trigger) ? trigger.icon : trigger.name);
9845
9852
  return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "dib lineHeight_0", children: [