diff --git a/src/js/core/factories/Grid.js b/src/js/core/factories/Grid.js index 65099a74c8..1b0cd8d392 100644 --- a/src/js/core/factories/Grid.js +++ b/src/js/core/factories/Grid.js @@ -1503,6 +1503,7 @@ 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; @@ -1510,7 +1511,7 @@ angular.module('ui.grid') self.gridWidth = gridUtil.elementWidth(self.element); self.gridHeight = gridUtil.elementHeight(self.element); - self.queueRefresh(); + return self.queueRefresh(); }; /**