Skip to content

Commit

Permalink
#811 #727 Use Math.ceil() to round up subpixel heights
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjbradshaw committed Feb 15, 2024
1 parent 90806b4 commit 329e65a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions js/iframeResizer.contentWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -1096,8 +1096,8 @@
customWidth
) {
function resizeIFrame() {
height = currentHeight
width = currentWidth
height = Math.ceil(currentHeight)
width = Math.ceil(currentWidth)

sendMsg(height, width, triggerEvent)
}
Expand Down
Loading

0 comments on commit 329e65a

Please sign in to comment.