@ai-matrx/design-system 0.61.12 → 0.61.13

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.js CHANGED
@@ -404,8 +404,9 @@ function overflowPast(el, rect, view) {
404
404
  const ox = view.getComputedStyle(p).overflowX;
405
405
  if (ox === "auto" || ox === "scroll") return null;
406
406
  }
407
+ const pinned = ["absolute", "fixed"].includes(view.getComputedStyle(el).position);
407
408
  const parent = el.parentElement;
408
- if (parent) {
409
+ if (parent && !pinned) {
409
410
  const pr = parent.getBoundingClientRect();
410
411
  if (pr.width > 0) {
411
412
  const by = Math.max(rect.right - pr.right, pr.left - rect.left);