updated basic example to actually redraw on window resize
This commit is contained in:
parent
26264f4f3e
commit
f4b41625cf
1 changed files with 3 additions and 1 deletions
|
@ -41,7 +41,9 @@
|
||||||
);
|
);
|
||||||
book.draw();
|
book.draw();
|
||||||
|
|
||||||
window.onresize = book.drawPage;
|
$(window).resize(function(event) {
|
||||||
|
book.draw();
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue