mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
fixes for react
This commit is contained in:
parent
48216cc7ec
commit
8ec9a5fbeb
14 changed files with 2372 additions and 150 deletions
|
@ -22,11 +22,12 @@ Reflowable.prototype.calculate = function(_width, _height, _gap, _devisor){
|
|||
|
||||
//-- Check the width and create even width columns
|
||||
var fullWidth = Math.floor(_width);
|
||||
var width = (fullWidth % 2 === 0) ? fullWidth : fullWidth - 1;
|
||||
var width = _width; //(fullWidth % 2 === 0) ? fullWidth : fullWidth - 1;
|
||||
|
||||
var section = Math.floor(width / 8);
|
||||
var gap = (_gap >= 0) ? _gap : ((section % 2 === 0) ? section : section - 1);
|
||||
|
||||
|
||||
var colWidth;
|
||||
var spreadWidth;
|
||||
var delta;
|
||||
|
@ -77,6 +78,8 @@ Reflowable.prototype.format = function(contents){
|
|||
// $body.style.height = this.height + "px";
|
||||
contents.height(this.height);
|
||||
|
||||
contents.css("margin", "0");
|
||||
|
||||
//-- Add columns
|
||||
// $body.style[this.columnAxis] = "horizontal";
|
||||
contents.css(this.columnAxis, "horizontal");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue