Kitware / cinema

ParaView Cinema
Other
11 stars 9 forks source link

Views fail to redraw upon browser resize #136

Open scottwittenburg opened 9 years ago

scottwittenburg commented 9 years ago

When we resize the browser window, most of the views fail to redraw the image. This is the case for all the webgl-based canvas widgets, as well as for the javascript canvas widget. While debugging this for the webgl widgets, I ran into weird things I couldn't explain, like the html canvas element (my viewport) having null width and height. I'll probably need @zachmullen and/or @patrickoleary to help with this issue.

zachmullen commented 9 years ago

@scottwittenburg this used to work at least for some of the widgets because we had them internally listen to the window resize event using a utility function. For example: https://github.com/Kitware/cinema/blob/master/web/src/js/lib/widgets/VisualizationCanvasWidget.js#L109

zachmullen commented 9 years ago

Which is implemented here: https://github.com/Kitware/cinema/blob/master/web/src/js/lib/utilities/MiscUtilities.js

patrickoleary commented 9 years ago

They are still listening to that event. However, since we removed all of the redundant listeners we are seeing this behavior.

On Thu, Dec 11, 2014 at 12:49 PM, Zach Mullen notifications@github.com wrote:

Which is implemented here: https://github.com/Kitware/cinema/blob/master/web/src/js/lib/utilities/MiscUtilities.js

— Reply to this email directly or view it on GitHub https://github.com/Kitware/cinema/issues/136#issuecomment-66676964.