From 2ad6aeef0d42dcf727509b9030c05adbd35f4e4a Mon Sep 17 00:00:00 2001 From: smirnov-d Date: Fri, 11 Jun 2021 11:08:31 +0300 Subject: [PATCH] add width 100% --- src/plugin/pagebreaks.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugin/pagebreaks.js b/src/plugin/pagebreaks.js index 5a4dc2b..b50d783 100644 --- a/src/plugin/pagebreaks.js +++ b/src/plugin/pagebreaks.js @@ -116,6 +116,7 @@ Worker.prototype.toContainer = function toContainer() { if (rules.before) { var pad = createElement('div', {style: { display: 'block', + width: '100%', height: pxPageHeight - (clientRect.top % pxPageHeight) + 'px' }}); el.parentNode.insertBefore(pad, el); @@ -125,6 +126,7 @@ Worker.prototype.toContainer = function toContainer() { if (rules.after) { var pad = createElement('div', {style: { display: 'block', + width: '100%', height: pxPageHeight - (clientRect.bottom % pxPageHeight) + 'px' }}); el.parentNode.insertBefore(pad, el.nextSibling);