diff --git a/src/AdaptivePopover.tsx b/src/AdaptivePopover.tsx index 562312d..b754729 100644 --- a/src/AdaptivePopover.tsx +++ b/src/AdaptivePopover.tsx @@ -236,6 +236,11 @@ export default class AdaptivePopover extends Component i === undefined)) { this.debug('calculateRectFromRef - rect not found, all properties undefined'); diff --git a/src/Utility.ts b/src/Utility.ts index f1ca74c..faa8cad 100644 --- a/src/Utility.ts +++ b/src/Utility.ts @@ -15,7 +15,7 @@ export function getRectForRef(ref: RefType): Promise { resolve(new Rect(x, y, width, height)) ); } else { - reject(new Error('getRectForRef - current is not set')); + resolve(new Rect(0, 0, 0, 0)); } }); }