1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00

Remind Safari to redraw iframe on show

This commit is contained in:
Fred Chasen 2018-08-24 12:42:40 -07:00
parent 8a07db29c0
commit 1dbd61a687

View file

@ -484,6 +484,11 @@ class IframeView {
if(this.iframe){ if(this.iframe){
this.iframe.style.visibility = "visible"; 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;
} }
this.emit(EVENTS.VIEWS.SHOWN, this); this.emit(EVENTS.VIEWS.SHOWN, this);