We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74696fa commit 0476d06Copy full SHA for 0476d06
src/css/layout/bounds.ts
@@ -17,7 +17,7 @@ export class Bounds {
17
}
18
19
static fromDOMRectList(context: Context, domRectList: DOMRectList): Bounds {
20
- const domRect = domRectList[0];
+ const domRect = Array.from(domRectList).find(rect => rect.width !== 0);
21
return domRect
22
? new Bounds(
23
domRect.x + context.windowBounds.left,
0 commit comments