If you get a chance, please try the following bug fix that hopefully will fix both single and double page spreads.
In edit epub.js in the reader folder and look for a routine called "adjustImages" near line 10655
In that routine you will see this line:
let horizontalPadding = parseFloat(computed.paddingLeft) + parseFloat(computed.paddingRight);
Please change this line to be:
let horizontalPadding = parseFloat(computed.paddingLeft) + parseFloat(computed.paddingRight) - this._layout.gap;
Also remember to *remove* this hack if you did add it.
+ if (this._layout.divisor > 1) {
+ horizontalPadding = 0;
+ }
gap is 0 in single page spreads but already accounted for in double-page spreads and by subtracting it out of horizontalPadding we can prevent double counting.
Hope this works for everything. If so let me know and I will add it in officially and make a new release.
|