mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
fixed bug in fixedLayout to allow the iframe to scroll, and fixed css problem cutting off text in /examples/single.html and /examples/custom-elements.html
This commit is contained in:
parent
8ad2e980cb
commit
27392b1db8
13 changed files with 25 additions and 15 deletions
2
books
2
books
|
@ -1 +1 @@
|
|||
Subproject commit ab9755a74714b647290c861f666515de220935d8
|
||||
Subproject commit 09bd1725f5839996e747cf83500a2526b86ae6af
|
|
@ -3799,6 +3799,7 @@ EPUBJS.Renderer.prototype.fixedLayout = function(){
|
|||
|
||||
//-- Scroll
|
||||
this.docEl.style.overflow = "auto";
|
||||
this.iframe.scrolling = "yes";
|
||||
|
||||
// this.displayedPages = 1;
|
||||
};
|
||||
|
@ -4201,6 +4202,7 @@ EPUBJS.Renderer.prototype.remove = function() {
|
|||
|
||||
//-- Enable binding events to parser
|
||||
RSVP.EventTarget.mixin(EPUBJS.Renderer.prototype);
|
||||
|
||||
var EPUBJS = EPUBJS || {};
|
||||
EPUBJS.replace = {};
|
||||
|
||||
|
|
4
build/epub.min.js
vendored
4
build/epub.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -3798,6 +3798,7 @@ EPUBJS.Renderer.prototype.fixedLayout = function(){
|
|||
|
||||
//-- Scroll
|
||||
this.docEl.style.overflow = "auto";
|
||||
this.iframe.scrolling = "yes";
|
||||
|
||||
// this.displayedPages = 1;
|
||||
};
|
||||
|
@ -4200,6 +4201,7 @@ EPUBJS.Renderer.prototype.remove = function() {
|
|||
|
||||
//-- Enable binding events to parser
|
||||
RSVP.EventTarget.mixin(EPUBJS.Renderer.prototype);
|
||||
|
||||
var EPUBJS = EPUBJS || {};
|
||||
EPUBJS.replace = {};
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
2
build/libs/zip.min.js
vendored
2
build/libs/zip.min.js
vendored
File diff suppressed because one or more lines are too long
4
demo/js/epub.min.js
vendored
4
demo/js/epub.min.js
vendored
File diff suppressed because one or more lines are too long
2
demo/js/libs/inflate.min.js
vendored
2
demo/js/libs/inflate.min.js
vendored
File diff suppressed because one or more lines are too long
2
demo/js/libs/zip.min.js
vendored
2
demo/js/libs/zip.min.js
vendored
File diff suppressed because one or more lines are too long
2
demo/js/reader.min.js
vendored
2
demo/js/reader.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -36,16 +36,19 @@
|
|||
box-shadow: 0px 5px 10px rgba(0,0,0,.1);
|
||||
}
|
||||
|
||||
epub-reader iframe {
|
||||
epub-reader {
|
||||
border: none;
|
||||
padding: 40px 40px;
|
||||
}
|
||||
|
||||
iframe {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.arrow {
|
||||
color: #777;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<script>
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
box-shadow: inset 10px 0 20px rgba(0,0,0,.1);
|
||||
}
|
||||
|
||||
#area iframe {
|
||||
#area {
|
||||
padding: 40px 40px;
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,9 @@
|
|||
|
||||
<script>
|
||||
|
||||
Book.renderTo("area");
|
||||
Book.renderTo("area").then(function(){
|
||||
//Book.setStyle("width", "400px");
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
@ -290,6 +290,7 @@ EPUBJS.Renderer.prototype.fixedLayout = function(){
|
|||
|
||||
//-- Scroll
|
||||
this.docEl.style.overflow = "auto";
|
||||
this.iframe.scrolling = "yes";
|
||||
|
||||
// this.displayedPages = 1;
|
||||
};
|
||||
|
@ -691,4 +692,4 @@ EPUBJS.Renderer.prototype.remove = function() {
|
|||
|
||||
|
||||
//-- Enable binding events to parser
|
||||
RSVP.EventTarget.mixin(EPUBJS.Renderer.prototype);
|
||||
RSVP.EventTarget.mixin(EPUBJS.Renderer.prototype);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue