Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

proper way of resizing an SVG plot? #212

@FilippoPolo

Description

@FilippoPolo

Hi all,

I'm using IDD to add zoom&pan capabilities to an SVG plot. It mostly works, but I can't get auto-resizing to work properly, specifically on height. My objective here is to maintain the same visible region as the window resizes. To do this, I periodically get the container size to see if it has changed.

I find that the plot shrinks when the container height is reduced, and remains the same height when the container height is increased. If you make the container alternately taller and shorter, this results in the plot shrinking constantly.

This is a repro:

iddsvg.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions