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 b62f4f8 commit 1c0b7c9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/components/src/popover/index.js
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 1c0b7c9

Please sign in to comment.