Fix side margin not defined in paged mode

This commit is contained in:
Kovid Goyal 2014-03-17 11:40:41 +05:30
parent 77e79d75cb
commit 2e40d47b5f
2 changed files with 2 additions and 0 deletions

Binary file not shown.

View File

@ -22,6 +22,7 @@ class PagedDisplay
this.set_geometry() this.set_geometry()
this.page_width = 0 this.page_width = 0
this.screen_width = 0 this.screen_width = 0
this.side_margin = 0
this.in_paged_mode = false this.in_paged_mode = false
this.current_margin_side = 0 this.current_margin_side = 0
this.is_full_screen_layout = false this.is_full_screen_layout = false
@ -122,6 +123,7 @@ class PagedDisplay
col_width = Math.max(100, ((ww - adjust)/n) - 2*sm) col_width = Math.max(100, ((ww - adjust)/n) - 2*sm)
this.col_width = col_width this.col_width = col_width
this.page_width = col_width + 2*sm this.page_width = col_width + 2*sm
this.side_margin = sm
this.screen_width = this.page_width * this.cols_per_screen this.screen_width = this.page_width * this.cols_per_screen
fgcolor = body_style.getPropertyValue('color') fgcolor = body_style.getPropertyValue('color')