Reputation: 54
We have an app where we have a collapsible side panel and Forge Viewer window side by side. When we collapse the side panel the forge viewer windows seems to get resized, but actually the viewer doesn't get fully resized. The Navigation Cube and bottom toolbar appears okay though. Please check attached images. How should I get the viewer resized properly?
Upvotes: 2
Views: 779
Reputation: 1
Hi anyone who goes through this solution, sometimes viewer.resize() might not work, so write it in a setTimeOut function, and it definitely works
Upvotes: 0
Reputation: 8574
The Viewer should resize with the parent element (e.g. DIV), but it may require you to trigger it with viewer.resize()
Upvotes: 3