mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
fix: Properties x and y of BoundingRect is undefined in old browser (#2797)
This commit is contained in:
parent
67c5e8dec4
commit
e587a82dca
@ -20,8 +20,8 @@ export class Bounds {
|
|||||||
const domRect = Array.from(domRectList).find((rect) => rect.width !== 0);
|
const domRect = Array.from(domRectList).find((rect) => rect.width !== 0);
|
||||||
return domRect
|
return domRect
|
||||||
? new Bounds(
|
? new Bounds(
|
||||||
domRect.x + context.windowBounds.left,
|
domRect.left + context.windowBounds.left,
|
||||||
domRect.y + context.windowBounds.top,
|
domRect.top + context.windowBounds.top,
|
||||||
domRect.width,
|
domRect.width,
|
||||||
domRect.height
|
domRect.height
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user