Skip to content

Commit

Permalink
fix issue 145
Browse files Browse the repository at this point in the history
  • Loading branch information
rxliuli committed Oct 8, 2022
1 parent 64780d9 commit aa2149c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/AdaptivePopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ export default class AdaptivePopover extends Component<AdaptivePopoverProps, Ada
count = 0;
do {
rect = await getRectForRef(fromRef);
// console.log('rect', rect)
if ([rect.x, rect.y, rect.width,rect.height].every(i => i === undefined)) {
console.log('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 aa2149c

Please sign in to comment.