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:
parent
781fd1e3bf
commit
237051055a
3 changed files with 17 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue