@zag-js/popper
Advanced tools
Comparing version 0.0.0-dev-20220616090725 to 0.0.0-dev-20220616093310
@@ -315,6 +315,5 @@ "use strict"; | ||
apply(data) { | ||
const { reference: reference2, height, width } = data; | ||
if (options.sameWidth) { | ||
Object.assign(floating.style, { | ||
width: `${reference2.width}px`, | ||
width: `${data.rects.reference.width}px`, | ||
minWidth: "unset" | ||
@@ -325,4 +324,4 @@ }); | ||
Object.assign(floating.style, { | ||
maxWidth: `${width}px`, | ||
maxHeight: `${height}px` | ||
maxWidth: `${data.availableWidth}px`, | ||
maxHeight: `${data.availableHeight}px` | ||
}); | ||
@@ -329,0 +328,0 @@ } |
{ | ||
"name": "@zag-js/popper", | ||
"version": "0.0.0-dev-20220616090725", | ||
"version": "0.0.0-dev-20220616093310", | ||
"description": "Dynamic positioning logic for ui machines", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
"@floating-ui/dom": "^0.5.0", | ||
"@zag-js/dom-utils": "0.0.0-dev-20220616090725", | ||
"@zag-js/dom-utils": "0.0.0-dev-20220616093310", | ||
"@zag-js/utils": "0.1.2" | ||
@@ -32,0 +32,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32249
899
+ Added@zag-js/dom-utils@0.0.0-dev-20220616093310(transitive)
- Removed@zag-js/dom-utils@0.0.0-dev-20220616090725(transitive)