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

Re-enable trimming out of frame views

This commit is contained in:
Fred Chasen 2017-11-20 16:09:47 -08:00
parent 781fd1e3bf
commit 237051055a
3 changed files with 17 additions and 10 deletions

View file

@ -333,6 +333,8 @@ class IframeView {
this.prevBounds = size;
this.elementBounds = bounds(this.element);
}
@ -533,10 +535,11 @@ class IframeView {
// Stub, override with a custom functions
}
bounds() {
if(!this.elementBounds) {
bounds(force) {
if(force || !this.elementBounds) {
this.elementBounds = bounds(this.element);
}
return this.elementBounds;
}