iframe-resizer
iframe-resizer copied to clipboard
Fractional parts are missed during the parsing message data
Describe the bug In our environment, we use iframeResizer to embed snippets in the UI. Sometimes the height calculated with "taggedElement" is a fractional number, e.g. 89.5px.
Whenever the host instance receives the message, it parses the value using the parseInt, so the 89.5px transforms to 89px. In case the content has a border, the bottom part is hidden.
Expected behavior Host uses parseFloat
Screenshots

Additional context Add any other context about the problem here.
Happy to take a PR for this
Hi @davidjbradshaw. Thanks for the quick reply. I try to push a commit to a separate branch but receive rejection due to the lack of access rights. Would you prefer to have an IDEA-based patch?
Just a normal PR should be fine and sorry for late reply, I have been somewhat unwell of late
Fixed in v5.0..0 #1205