Skip to content

Commit

Permalink
fix: bug in math.ts for popovers with position cover
Browse files Browse the repository at this point in the history
  • Loading branch information
kyledurand committed Mar 15, 2024
1 parent 1543246 commit 2d0d15c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tall-buttons-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/polaris': patch
---

Fixed bug in math.ts for popover with position cover
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function calculateVerticalPosition(

const positionIfCoverBelow = {
height: heightIfBelowCover - verticalMargins,
top: activatorTop - containerRectTop,
top: activatorTop + containerRectTop,
positioning: 'cover',
};

Expand Down

0 comments on commit 2d0d15c

Please sign in to comment.