2

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?

Santrro
  • 58
  • 7

1 Answers1

3

The Viewer should resize with the parent element (e.g. DIV), but it may require you to trigger it with viewer.resize()

Augusto Goncalves
  • 8,493
  • 2
  • 17
  • 44
  • Thanks for the clue. I was setting the width on the canvas instead of the parent div. So we fixed that and additionally called `viewer.resize()` and problem got solved. – Santrro Nov 13 '19 at 13:02