# Editor.PanelWindow.SnapToDisplay

```csharp
void SnapToDisplay()
```

Move the window the least distance that puts all of it on the usable part of its display.
A window taller or wider than the display keeps its top left on screen.

Declared in [Editor.PanelWindow](/api/Editor.PanelWindow).
Assembly: `Sandbox.Tools`.
