diff --git a/resources/compiled_coffeescript.zip b/resources/compiled_coffeescript.zip index f1d9889985..6d6d44a610 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 369724f0ae..9a8b9782a8 100644 --- a/src/calibre/ebooks/oeb/display/paged.coffee +++ b/src/calibre/ebooks/oeb/display/paged.coffee @@ -211,12 +211,12 @@ class PagedDisplay bs.setProperty('overflow', 'visible') bs.setProperty('height', this.current_page_height + 'px') bs.setProperty('width', (window.innerWidth - 2*sm)+'px') - bs.setProperty('margin-top', this.effective_margin_top + 'px') - bs.setProperty('margin-bottom', this.effective_margin_bottom+'px') - bs.setProperty('margin-left', sm+'px') - bs.setProperty('margin-right', sm+'px') + bs.setProperty('padding-top', this.effective_margin_top + 'px') + bs.setProperty('padding-bottom', this.effective_margin_bottom+'px') + bs.setProperty('padding-left', sm+'px') + bs.setProperty('padding-right', sm+'px') for edge in ['left', 'right', 'top', 'bottom'] - bs.setProperty('padding-'+edge, '0px') + bs.setProperty('margin-'+edge, '0px') bs.setProperty('border-'+edge+'-width', '0px') bs.setProperty('min-width', '0') bs.setProperty('max-width', 'none')