File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,8 @@ Worker.prototype.toContainer = function toContainer() {
124124 var pad = createElement ( self . opt . pagebreak . elementType || "div" , {
125125 style : {
126126 display : 'block' ,
127+ // https://github.com/eKoopmans/html2pdf.js/pull/447
128+ width : '100%' ,
127129 height : pxPageHeight - ( clientRect . top % pxPageHeight ) + 'px'
128130 } , className : self . opt . pagebreak . className } ) ; //allow control of styling of added sections
129131 el . parentNode . insertBefore ( pad , el ) ;
@@ -133,6 +135,8 @@ Worker.prototype.toContainer = function toContainer() {
133135 if ( rules . after ) {
134136 var pad = createElement ( 'div' , { style : {
135137 display : 'block' ,
138+ // https://github.com/eKoopmans/html2pdf.js/pull/447
139+ width : '100%' ,
136140 height : pxPageHeight - ( clientRect . bottom % pxPageHeight ) + 'px'
137141 } } ) ;
138142 el . parentNode . insertBefore ( pad , el . nextSibling ) ;
You can’t perform that action at this time.
0 commit comments