This commit is contained in:
Kovid Goyal 2017-02-23 23:34:32 +05:30
parent 2805e0b84b
commit 90d587905d

View File

@ -202,7 +202,7 @@ def layout(is_single_page):
if ncols is not Math.floor(ncols): if ncols is not Math.floor(ncols):
n = Math.floor(ncols) n = Math.floor(ncols)
dw = n*col_width + (n-1)*gap dw = n*col_width + (n-1)*gap
data = {'col_with':col_width, 'gap':gap, 'scrollWidth':document.body.scrollWidth, 'ncols':ncols, 'desired_width':dw} data = {'col_width':col_width, 'gap':gap, 'scrollWidth':document.body.scrollWidth, 'ncols':ncols, 'desired_width':dw}
return data return data
data = check_column_widths() data = check_column_widths()
if data: if data: