Santrro
Santrro

Reputation: 54

Forge Autodesk Viewer window is truncated after resizing

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.enter image description here Please check attached images. How should I get the viewer resized properly?

Upvotes: 2

Views: 779

Answers (2)

Satyaki Sengupta
Satyaki Sengupta

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

Augusto Goncalves
Augusto Goncalves

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

Related Questions