<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`Workspace`](Workspace) › [on('resize')](Workspace/on('resize').md)
## Workspace.on('resize') method
Triggered when a `WorkspaceItem` is resized or the workspace layout has changed.
0.9.7
**Signature:**
```typescript
on(name: 'resize', callback: () => any, ctx?: any): EventRef;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>name</code> | <code>'resize'</code> | |
| <code>callback</code> | <code>() => any</code> | |
| <code>ctx</code> | <code>any</code> | _(Optional)_ |
**Returns:**
[`EventRef`](EventRef)