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:
parent
8a07db29c0
commit
1dbd61a687
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue