react-fast-pdf
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -64,3 +64,3 @@ "use strict"; | ||
const devicePixelRatio = getDevicePixelRatio(pageWidth, pageHeight); | ||
const topPadding = numPages > 1 ? parseFloat(style.top) + constants_1.PAGE_BORDER : containerHeight - parseFloat(style.height) / 2; | ||
const topPadding = numPages > 1 ? parseFloat(style.top) + constants_1.PAGE_BORDER : (containerHeight - parseFloat(style.height)) / 2; | ||
return (react_1.default.createElement("div", { style: Object.assign(Object.assign(Object.assign({}, styles_1.pdfPreviewerStyles.pageWrapper), style), { top: `${topPadding}px` }) }, | ||
@@ -67,0 +67,0 @@ react_1.default.createElement(react_pdf_1.Page, { key: `page_${index}`, width: pageWidth, height: pageHeight || estimatedPageHeight, pageIndex: index, |
{ | ||
"name": "react-fast-pdf", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "react-fast-pdf", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
67994
103136