---
title: resize
slug: viewer-3d/methods/resize
docTags: 
createdAt: 2024-03-01T14:17:48.684Z
---

Resizes the viewer to fit the container.

:::hint{type="info"}
When mounting the viewer instance to a fixed sized container, you may need to call this method to resize the viewer when the container size changes.
:::

## Usage

```javascript
viewer3d.resize();
```

