mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Fixed locking to solve single page issues
This commit is contained in:
parent
61ebe6d16e
commit
23ca0b840d
8 changed files with 32 additions and 29 deletions
|
@ -541,9 +541,9 @@ EPUBJS.Continuous.prototype.scrollTo = function(x, y, silent){
|
|||
EPUBJS.Continuous.prototype.resizeView = function(view) {
|
||||
|
||||
if(this.settings.axis === "horizontal") {
|
||||
view.lock(null, this.stage.height);
|
||||
view.lock("height", this.stage.width, this.stage.height);
|
||||
} else {
|
||||
view.lock(this.stage.width, null);
|
||||
view.lock("width", this.stage.width, this.stage.height);
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue