sp webpart base.baseclientsidewebpart.onafterresize - microsoft/Viva-Connections-Extensibility-Beta GitHub Wiki
Home > @microsoft/sp-webpart-base > BaseClientSideWebPart > onAfterResize
This API is invoked when the web part container dom element width is changed, e.g. when the browser browser window is resized and when the property pane is toggled open/closed.
Signature:
/** @virtual */
protected onAfterResize(newWidth: number): void;| Parameter | Type | Description |
|---|---|---|
| newWidth | number | Width (in pixels) of the container for the web part after the resize event. |
Returns:
void
Web parts should utilize this method to perform operations such as potentially re-rendering components based on the new available width for the web part.