@getflip/swirl-components 0.184.0 → 0.184.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -166,7 +166,7 @@ export class SwirlFileViewerPdf {
166
166
  this.renderingPageNumbers.includes(page.pageNumber)) {
167
167
  continue;
168
168
  }
169
- if (!this.visiblePages.includes(page.pageNumber)) {
169
+ if (!this.visiblePages.includes(page.pageNumber) && !forPrint) {
170
170
  this.destroyPage(page);
171
171
  continue;
172
172
  }
@@ -250,11 +250,26 @@ export class SwirlFileViewerPdf {
250
250
  *, *:before, *:after {
251
251
  margin: 0;
252
252
  padding: 0;
253
+ outline: 0;
254
+ }
255
+
256
+ @page {
257
+ size: a4;
258
+ margin: 0;
259
+ padding: 0;
260
+ }
261
+
262
+ body {
263
+ height: 100%;
264
+ width: 100%;
253
265
  }
254
266
 
255
267
  img {
256
268
  display: block;
269
+ max-width: 100%;
270
+ max-height: 100%;
257
271
  width: 100%;
272
+ height: auto;
258
273
  page-break-after: always;
259
274
  }
260
275
  `;