Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/js/core/factories/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -1503,14 +1503,15 @@ angular.module('ui.grid')
* @name handleWindowResize
* @methodOf ui.grid.class:Grid
* @description Triggered when the browser window resizes; automatically resizes the grid
* @returns {Promise} A resolved promise once the window resize has completed.
*/
Grid.prototype.handleWindowResize = function handleWindowResize($event) {
var self = this;

self.gridWidth = gridUtil.elementWidth(self.element);
self.gridHeight = gridUtil.elementHeight(self.element);

self.queueRefresh();
return self.queueRefresh();
};

/**
Expand Down