Skip to content

Commit

Permalink
Add iframeOffset to arrow position
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Aug 31, 2022
1 parent 41404c0 commit 1de9502
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/components/src/popover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,16 @@ const Popover = (
].join( ' ' ) }
style={ {
left: Number.isFinite( arrowData?.x )
? `${ arrowData.x }px`
? `${
arrowData.x +
( frameOffsetRef.current?.x ?? 0 )
}px`
: '',
top: Number.isFinite( arrowData?.y )
? `${ arrowData.y }px`
? `${
arrowData.y +
( frameOffsetRef.current?.y ?? 0 )
}px`
: '',
} }
>
Expand Down

0 comments on commit 1de9502

Please sign in to comment.