mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
FFrame sizes fix
This commit is contained in:
parent
e816b25c31
commit
2d03b6e8a2
@ -13,8 +13,8 @@ export class IFrameElementContainer extends ElementContainer {
|
||||
constructor(context: Context, iframe: HTMLIFrameElement) {
|
||||
super(context, iframe);
|
||||
this.src = iframe.src;
|
||||
this.width = parseInt(iframe.width, 10) || 0;
|
||||
this.height = parseInt(iframe.height, 10) || 0;
|
||||
this.width = parseInt(iframe.width, 10) || iframe.offsetWidth || 0;
|
||||
this.height = parseInt(iframe.height, 10) || iframe.offsetHeight || 0;
|
||||
this.backgroundColor = this.styles.backgroundColor;
|
||||
try {
|
||||
if (
|
||||
|
Loading…
Reference in New Issue
Block a user