Skip to content

Commit

Permalink
fix(Grid.refresh): Refreshing canvas after processing.
Browse files Browse the repository at this point in the history
Moving refreshCanvas call until after rows have been processed.
  • Loading branch information
Portugal, Marcelo authored and mportuga committed Mar 22, 2017
1 parent 5e43864 commit e6ab96b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/js/core/factories/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -2082,9 +2082,8 @@ angular.module('ui.grid')
self.setVisibleColumns(renderableColumns);
}).catch(angular.noop);

var p3 = self.refreshCanvas(true);

return $q.all([p1, p2, p3]).then(function () {
return $q.all([p1, p2]).then(function () {
self.refreshCanvas(true);
self.redrawInPlace(rowsAltered);
}).catch(angular.noop);
};
Expand Down

0 comments on commit e6ab96b

Please sign in to comment.