Skip to content

Commit

Permalink
Fix layers dirtying after resize (ampproject#21215)
Browse files Browse the repository at this point in the history
I pushed the Element into `dirtySet`, not the `ChangeHeightRequest`.
  • Loading branch information
jridgewell authored Mar 1, 2019
1 parent 1b080fa commit 5dac270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/resources-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1405,8 +1405,8 @@ export class Resources {
}

if (this.useLayers_) {
dirtySet.forEach(request => {
this.dirtyElement(request.resource.element);
dirtySet.forEach(element => {
this.dirtyElement(element);
});
} else if (minTop != -1) {
this.setRelayoutTop_(minTop);
Expand Down

0 comments on commit 5dac270

Please sign in to comment.