@absolutejs/beacon 0.6.30 → 0.6.31

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
@@ -1952,7 +1952,8 @@ var createBeacon = (options) => {
1952
1952
  if (overflowX === "auto" || overflowX === "scroll")
1953
1953
  return;
1954
1954
  if (overflowX === "hidden" || overflowX === "clip") {
1955
- const clipPx = element.scrollWidth - element.clientWidth;
1955
+ const horizontalContentWidth = Math.max(element.clientWidth, rect.width);
1956
+ const clipPx = element.scrollWidth - horizontalContentWidth;
1956
1957
  if (clipPx > LAYOUT_OVERFLOW_CONTAINER_TOLERANCE_PX && style.textOverflow !== "ellipsis") {
1957
1958
  reportOverflow(element, "clipped", "content is cut by overflow hidden", clipPx);
1958
1959
  }
@@ -3954,5 +3955,5 @@ export {
3954
3955
  BEACON_ATTRIBUTE
3955
3956
  };
3956
3957
 
3957
- //# debugId=04B2D89C632EBE5464756E2164756E21
3958
+ //# debugId=072323A5FE172E3664756E2164756E21
3958
3959
  //# sourceMappingURL=index.js.map