-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Hello,
I have a 4 panel setup with vtkRemoteViews that are controlled by a CSS display:grid setup.
I add vtkBorderWidgets to my render windows, and I am trying to keep their size in sync with the rendered image. I have noticed that when I set a new layout, there is a moment where the rendered image is stretched, which then quickly updates, to the correct size.
Using a trame.SizeObserver I am able to capture when the resize happens. But updating the position of the vtkBorderWidget using an @change observer for the size seems to resize it to the stretched image, not the final one that is rendered.
This can be better explained with the following video:
chrome_l7tQdkJw6L.mp4
Interestingly, the resize logic works fine when the expansion panel at the bottom is opened, just not on the layout change. I'm wondering if an event on vtkRemoteView for "final frame rendered" exists or could be added to help resolve this problem.