|
@@ -306,7 +306,7 @@ this.docHelper = this.docHelper || (() => {
|
|
|
function getSize(win, imageElement) {
|
|
function getSize(win, imageElement) {
|
|
|
let pxWidth = imageElement.naturalWidth;
|
|
let pxWidth = imageElement.naturalWidth;
|
|
|
let pxHeight = imageElement.naturalHeight;
|
|
let pxHeight = imageElement.naturalHeight;
|
|
|
- if (pxWidth >= 0 && pxHeight >= 0) {
|
|
|
|
|
|
|
+ if (pxWidth > 0 && pxHeight > 0) {
|
|
|
return { pxWidth, pxHeight };
|
|
return { pxWidth, pxHeight };
|
|
|
} else {
|
|
} else {
|
|
|
const computedStyle = win.getComputedStyle(imageElement);
|
|
const computedStyle = win.getComputedStyle(imageElement);
|