Comparing version 0.3.69 to 0.3.70
@@ -188,2 +188,8 @@ "use strict"; | ||
} | ||
} else { | ||
if ((0, _core.isNumber)(width)) { | ||
this.container.style.width = width + "px"; | ||
} else { | ||
this.container.style.width = width; | ||
} | ||
} | ||
@@ -196,4 +202,10 @@ | ||
height = bounds.height; | ||
this.container.style.height = bounds.height + "px"; | ||
this.container.style.height = height + "px"; | ||
} | ||
} else { | ||
if ((0, _core.isNumber)(height)) { | ||
this.container.style.height = height + "px"; | ||
} else { | ||
this.container.style.height = height; | ||
} | ||
} | ||
@@ -200,0 +212,0 @@ |
@@ -513,2 +513,7 @@ "use strict"; | ||
this.iframe.style.visibility = "visible"; | ||
// Remind Safari to redraw the iframe | ||
this.iframe.style.transform = "translateZ(0)"; | ||
this.iframe.offsetWidth; | ||
this.iframe.style.transform = null; | ||
} | ||
@@ -515,0 +520,0 @@ |
{ | ||
"name": "epubjs", | ||
"version": "0.3.69", | ||
"version": "0.3.70", | ||
"description": "Parse and Render Epubs", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -165,2 +165,8 @@ import {uuid, isNumber, isElement, windowBounds} from "../../utils/core"; | ||
} | ||
} else { | ||
if (isNumber(width)) { | ||
this.container.style.width = width + "px"; | ||
} else { | ||
this.container.style.width = width; | ||
} | ||
} | ||
@@ -173,5 +179,11 @@ | ||
height = bounds.height; | ||
this.container.style.height = bounds.height + "px"; | ||
this.container.style.height = height + "px"; | ||
} | ||
} else { | ||
if (isNumber(height)) { | ||
this.container.style.height = height + "px"; | ||
} else { | ||
this.container.style.height = height; | ||
} | ||
} | ||
@@ -178,0 +190,0 @@ |
@@ -487,2 +487,7 @@ import EventEmitter from "event-emitter"; | ||
this.iframe.style.visibility = "visible"; | ||
// Remind Safari to redraw the iframe | ||
this.iframe.style.transform = "translateZ(0)"; | ||
this.iframe.offsetWidth; | ||
this.iframe.style.transform = null; | ||
} | ||
@@ -489,0 +494,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
5042546
57625