This commit is contained in:
Kovid Goyal 2012-07-01 10:20:54 +05:30
parent b128849723
commit 1c8a05a11f

View File

@ -112,7 +112,7 @@ class PagedDisplay
if this.max_col_width > 0 and col_width > this.max_col_width
# Increase the side margin to ensure that col_width is no larger
# than max_col_width
sm += Math.ceil( (col_width - this.max_col_width) / 2.0 )
sm += Math.ceil( (col_width - this.max_col_width) / 2*n )
col_width = Math.max(100, ((ww - adjust)/n) - 2*sm)
this.page_width = col_width + 2*sm
this.screen_width = this.page_width * this.cols_per_screen