Skip to content

Commit

Permalink
Use "math.ceil" for browserSize as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
tarzzz committed Sep 24, 2019
1 parent 1d56807 commit 7adc6e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/component/plotly-dash-preview/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ function parse (body, req, opts, sendToRenderer) {
} else if (body.pageSize && isPositiveNumeric(body.pageSize.width) &&
isPositiveNumeric(body.pageSize.height)) {
result.browserSize = {
width: body.pageSize.width * cst.pixelsInMicron,
height: body.pageSize.height * cst.pixelsInMicron
width: Math.ceil(body.pageSize.width * cst.pixelsInMicron),
height: Math.ceil(body.pageSize.height * cst.pixelsInMicron)
}
result.pdfOptions.pageSize = {
width: Math.ceil(body.pageSize.width),
Expand Down

0 comments on commit 7adc6e3

Please sign in to comment.