1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

split up layout functions into format and page calculate

This commit is contained in:
Fred Chasen 2014-01-27 13:19:31 -08:00
parent 0b6d852586
commit c7b35c51fb
13 changed files with 317 additions and 219 deletions

View file

@ -189,7 +189,7 @@ EPUBJS.Hooks.register("beforeChapterDisplay").smartimages = function(callback, r
iheight = renderer.height,//chapter.bodyEl.clientHeight,//chapter.doc.body.getBoundingClientRect().height,
oheight;
if(renderer.settings.layout != "reflowable") {
if(renderer.layoutSettings.layout != "reflowable") {
callback();
return; //-- Only adjust images for reflowable text
}