mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Update display to accept percentages, handle getting location of collapsed ranges
This commit is contained in:
parent
db798e7934
commit
fb04ac2c25
10 changed files with 390 additions and 204 deletions
|
@ -93,7 +93,7 @@ Layout.prototype.calculate = function(_width, _height, _gap){
|
|||
|
||||
//-- Double Page
|
||||
if(divisor > 1) {
|
||||
colWidth = Math.floor((width - gap) / divisor);
|
||||
colWidth = (width - gap) / divisor;
|
||||
} else {
|
||||
colWidth = width;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue