1
0
Fork 0
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:
Fred Chasen 2016-11-23 20:47:07 +01:00
parent db798e7934
commit fb04ac2c25
10 changed files with 390 additions and 204 deletions

View file

@ -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;
}