Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewport View3D sometimes needs window resize to draw properly #161

Open
gzt036 opened this issue Jan 30, 2022 · 0 comments
Open

Viewport View3D sometimes needs window resize to draw properly #161

gzt036 opened this issue Jan 30, 2022 · 0 comments

Comments

@gzt036
Copy link

gzt036 commented Jan 30, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant