diff --git a/resources/compiled_coffeescript.zip b/resources/compiled_coffeescript.zip index e6f5ad2242..846f8d323b 100644 Binary files a/resources/compiled_coffeescript.zip and b/resources/compiled_coffeescript.zip differ diff --git a/src/calibre/ebooks/oeb/display/paged.coffee b/src/calibre/ebooks/oeb/display/paged.coffee index e53b94236d..8b0f1e0ad4 100644 --- a/src/calibre/ebooks/oeb/display/paged.coffee +++ b/src/calibre/ebooks/oeb/display/paged.coffee @@ -192,6 +192,7 @@ class PagedDisplay fgcolor = body_style.getPropertyValue('color') + bs.setProperty('box-sizing', 'content-box') bs.setProperty('-webkit-column-gap', 2*sm + 'px') bs.setProperty('-webkit-column-width', col_width + 'px') bs.setProperty('-webkit-column-rule', '0px inset blue') diff --git a/src/pyj/read_book/paged_mode.pyj b/src/pyj/read_book/paged_mode.pyj index 949adaac17..2e9486b14b 100644 --- a/src/pyj/read_book/paged_mode.pyj +++ b/src/pyj/read_book/paged_mode.pyj @@ -170,7 +170,7 @@ def layout(is_single_page): set_css(document.body, column_gap=gap + 'px', column_width=col_width + 'px', column_rule='0px inset blue', min_width='0', max_width='none', min_height='0', max_height='100vh', column_fill='auto', - margin='0', border_width='0', padding='0', + margin='0', border_width='0', padding='0', box_sizing='content-box', width=screen_width + 'px', height=screen_height + 'px' ) # Without this, webkit bleeds the margin of the first block(s) of body