Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(gridList): Animation reflow fix.
Browse files Browse the repository at this point in the history
Now correctly decorates the element with the destroyed flag.

Closes #1559. Closes #5042.
  • Loading branch information
Scott Hyndman authored and ThomasBurleson committed Oct 6, 2015
1 parent ed80df7 commit 9ae9501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/gridList/grid-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ function GridTileDirective($mdMedia) {
scope.$on('$destroy', function() {
// Mark the tile as destroyed so it is no longer considered in layout,
// even if the DOM element sticks around (like during a leave animation)
element.$$mdDestroyed = true;
element[0].$$mdDestroyed = true;
unwatchAttrs();
gridCtrl.invalidateLayout();
});
Expand Down

0 comments on commit 9ae9501

Please sign in to comment.