How to make canvas responsive?

Hi there, how can I make the canvas of the shapediver viewer responsive? And, how can the size of the canvas newly be set (something like api.scene.resize() )? Thanks

You need to set the following style options to the viewer container:

<div id='sdv-container' style='position: absolute; width: 100%; height: 100%; left:0%; top:0%' >

There is no additional call to set the canvas size, it will automatically fill the container defined as a viewer property.

See documentation here:

Ah, perefect! That solved the problem.