# windowResize

> FullCalendar v4 documentation, for an old release. Web version: https://legacy.fullcalendar.io/v4/windowResize
>
> Upgrading to v7: https://fullcalendar.io/docs/upgrading-from-v6.md

Triggered after the calendar's dimensions have been changed due to the browser window being resized.

<div class='spec' markdown='1'>
function( *view* ) { }
</div>

The calendar has automatically adapted to the new size when windowResize is triggered.

`view` is the current [View Object](https://legacy.fullcalendar.io/v4/view-object.md).

Within the callback function, `this` will be set to the calendar's main element.

Example usage of windowResize:

```js
var calendar = new Calendar(calendarEl, {
  windowResize: function(view) {
    alert('The calendar has adjusted to a window resize');
  }
});
```
