Skip to content

Commit

Permalink
Merge pull request #147 from rxliuli/fix-145
Browse files Browse the repository at this point in the history
Fix issue #145
  • Loading branch information
SteffeyDev authored Oct 20, 2022
2 parents 64780d9 + 09bee70 commit cb3e3e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/AdaptivePopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ export default class AdaptivePopover extends Component<AdaptivePopoverProps, Ada
count = 0;
do {
rect = await getRectForRef(fromRef);
if ([rect.x, rect.y, rect.width,rect.height].every(i => i === undefined)) {
this.debug('rect not found')
return
}
rect = new Rect(rect.x + horizontalOffset, rect.y + verticalOffset, rect.width, rect.height);

await new Promise(resolve => {
Expand Down

0 comments on commit cb3e3e1

Please sign in to comment.