Skip to content

rendered image is 4px off #187

@sixinli

Description

@sixinli

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
screen shot 2017-06-07 at 4 52 55 am

and thus causing the iframe's scrollWidth/clientWidth/scrollHeight/clientHeight to be 4px smaller than the actual set width.
screen shot 2017-06-07 at 4 56 46 am

we can fix this by adding border: none to the iframe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions