Skip to content

HTML canvas grows with each redraw with resize:false if there is no CSS styling #39

@johnridesabike

Description

@johnridesabike

It seems that if there is no CSS styling applied to the given canvas element, Vgr_htmlc can cause the canvas to grow with every redraw when ~resize:false. I'm not sure how much of a real-world problem this is considering users would be expected to always have styling, but I noticed this while developing on a minimalist web page. Adding CSS height and width styles fixed it for me.

I think an additional warning in the docs would probably be sufficient if there is not a better fix available.

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