-
Notifications
You must be signed in to change notification settings - Fork 222
Closed
Description
in calculateContentSize it uses the iframe's scrollWidth/clientWidth and scrollHeight/clientHeight to detect the size of viewport. however, user agent by default has border-width: 2px on iframe

and thus causing the iframe's scrollWidth/clientWidth/scrollHeight/clientHeight to be 4px smaller than the actual set width.

we can fix this by adding border: none to the iframe
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels