Skip to content

Plotly error "Resize must be passed a displayed plot div element." #26

Description

@gdurand

When resizing a window while a plot is not visible, plotly logs this error.
To fix this you can add this test in onResize() (the same check as in plotly that triggers this error):

let e = window.getComputedStyle(graph).display;
if ( !e || "none" === e) return;

I don't know if this has an impact on the onResize() functionality.

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