# Editor.PanelWindow.SizeToContents

```csharp
bool SizeToContents { get; set; }
```

Resize the window to fit the first thing on the surface. Popups use this so a menu is
exactly as big as its contents, however far outside the parent window that ends up.

Declared in [Editor.PanelWindow](/api/Editor.PanelWindow).
Assembly: `Sandbox.Tools`.
