redraw comic on window resize
This commit is contained in:
parent
0af57f1c52
commit
7760c0470e
2 changed files with 5 additions and 3 deletions
|
@ -40,6 +40,8 @@
|
|||
]
|
||||
);
|
||||
book.draw();
|
||||
|
||||
window.onresize = book.drawPage;
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -428,8 +428,8 @@ function ComicBook(id, srcs, opts) {
|
|||
var zoom_scale;
|
||||
var offsetW = 0, offsetH = 0;
|
||||
|
||||
var page = this.getPage(pointer);
|
||||
var page2 = this.getPage(pointer + 1);
|
||||
var page = ComicBook.prototype.getPage(pointer);
|
||||
var page2 = ComicBook.prototype.getPage(pointer + 1);
|
||||
|
||||
if (typeof page !== "object") {
|
||||
throw new ComicBookException(ComicBookException.INVALID_PAGE_TYPE, typeof page);
|
||||
|
@ -729,5 +729,5 @@ function ComicBook(id, srcs, opts) {
|
|||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue