diff --git a/resources/compiled_coffeescript.zip b/resources/compiled_coffeescript.zip index 4bb1116a8a..542fa62662 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 0bc5f96e32..909ac15ae9 100644 --- a/src/calibre/ebooks/oeb/display/paged.coffee +++ b/src/calibre/ebooks/oeb/display/paged.coffee @@ -179,13 +179,8 @@ class PagedDisplay # above the columns, which causes them to effectively be added to the # page margins (the margin collapse algorithm) bs.setProperty('-webkit-margin-collapse', 'separate') - # Remove any webkit specified default margin from the first child of body - # Otherwise, you could end up with an effective negative margin, I dont - # understand exactly why, but see: - # https://bugs.launchpad.net/calibre/+bug/1082640 for an example c = first_child(document.body) if c != null - c.style.setProperty('-webkit-margin-before', '0') # Remove page breaks on the first few elements to prevent blank pages # at the start of a chapter c.style.setProperty('-webkit-column-break-before', 'avoid') diff --git a/src/pyj/read_book/paged_mode.pyj b/src/pyj/read_book/paged_mode.pyj index 4c1ed32689..cc193d6530 100644 --- a/src/pyj/read_book/paged_mode.pyj +++ b/src/pyj/read_book/paged_mode.pyj @@ -142,13 +142,8 @@ def layout(is_single_page): # above the columns, which causes them to effectively be added to the # page margins (the margin collapse algorithm) document.body.style.setProperty('-webkit-margin-collapse', 'separate') - # Remove any webkit specified default margin from the first child of body - # Otherwise, you could end up with an effective negative margin, I dont - # understand exactly why, but see: - # https://bugs.launchpad.net/calibre/+bug/1082640 for an example c = first_child(document.body) if c: - c.style.setProperty('-webkit-margin-before', '0') # Remove page breaks on the first few elements to prevent blank pages # at the start of a chapter set_css(c, break_before='avoid')