Skip to content

Commit 58e5930

Browse files
committed
Change width/height to int.
This is to prevent: electron/electron#9361 (comment) incase someone provides float values for width/height.
1 parent 76ac94e commit 58e5930

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/component/plotly-dash-preview

src/component/plotly-dash-preview/parse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ function parse (body, req, opts, sendToRenderer) {
4545
height: body.pageSize.height * cst.pixelsInMicron
4646
}
4747
result.pdfOptions.pageSize = {
48-
width: body.pageSize.width,
49-
height: body.pageSize.height
48+
width: Math.ceil(body.pageSize.width),
49+
height: Math.ceil(body.pageSize.height)
5050
}
5151
} else {
5252
return errorOut(

0 commit comments

Comments
 (0)