Skip to content

Commit

Permalink
Merge pull request #186 from habovh/patch-1
Browse files Browse the repository at this point in the history
Fix blur on non-retina displays + popover overflow
  • Loading branch information
alexkatz authored Feb 13, 2023
2 parents 6cfbc12 + 0efa2ad commit 8b7d53f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usePopover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export const usePopover = ({
finalTop = Math.round(finalTop - scoutRect.top);
finalLeft = Math.round(finalLeft - scoutRect.left);

popoverRef.current.style.transform = `translate(${left}px, ${top}px)`;
popoverRef.current.style.transform = `translate(${finalLeft}px, ${finalTop}px)`;

const potentialViolations: BoundaryViolations = {
top: boundaryRect.top + boundaryInset - finalTop,
Expand Down

0 comments on commit 8b7d53f

Please sign in to comment.