Skip to content

Viewport View3D sometimes needs window resize to draw properly #161

@gzt036

Description

@gzt036

I got an issue that sometimes the view3D component won't draw, but once I resize the window it draws.

I checked the code and it might be related to file VTKViewport/view3D.js line 108
// TODO: Not sure why this is necessary to force the initial draw
this.genericRenderWindow.resize();

I wonder if you have figured out why this is necessary, could you explain what happens here?

Also, can I trigger an event or something to call this resize() call forcefully? hopefully that will fix the problem I encountered.

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