@primer/behaviors 0.0.0-20250710060721 → 0.0.0-20250711041200

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.
@@ -75,7 +75,9 @@ function getClippingRect(element) {
75
75
  top: elemRect.top + borderTop,
76
76
  left: elemRect.left + borderLeft,
77
77
  width: elemRect.width - borderRight - borderLeft,
78
- height: Math.max(elemRect.height - borderTop - borderBottom, clippingNode === document.body ? window.innerHeight : -Infinity),
78
+ height: clippingNode === document.body
79
+ ? window.innerHeight
80
+ : Math.max(elemRect.height - borderTop - borderBottom, -Infinity),
79
81
  };
80
82
  }
81
83
  const positionDefaults = {
@@ -73,7 +73,9 @@ function getClippingRect(element) {
73
73
  top: elemRect.top + borderTop,
74
74
  left: elemRect.left + borderLeft,
75
75
  width: elemRect.width - borderRight - borderLeft,
76
- height: Math.max(elemRect.height - borderTop - borderBottom, clippingNode === document.body ? window.innerHeight : -Infinity),
76
+ height: clippingNode === document.body
77
+ ? window.innerHeight
78
+ : Math.max(elemRect.height - borderTop - borderBottom, -Infinity),
77
79
  };
78
80
  }
79
81
  const positionDefaults = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/behaviors",
3
- "version": "0.0.0-20250710060721",
3
+ "version": "0.0.0-20250711041200",
4
4
  "description": "Shared behaviors for JavaScript components",
5
5
  "type": "commonjs",
6
6
  "main": "dist/cjs/index.js",