Commit 8b457db6 authored by Roberto Moura's avatar Roberto Moura Committed by Commit Bot

Add comment to explain why setting z index of grid cells is necessary.

Setting the cells' layer zPosition is necessary for lower rows to be
superposed during transitions between grid and horizontal layouts.

Change-Id: I335aaedf6eee0dca2e15a94558e58d2c2c48974f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2456346
Commit-Queue: Roberto Moura <mouraroberto@google.com>
Commit-Queue: edchin <edchin@chromium.org>
Auto-Submit: Roberto Moura <mouraroberto@google.com>
Reviewed-by: default avataredchin <edchin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814736}
parent 82f19c4c
...@@ -332,6 +332,8 @@ NSIndexPath* CreateIndexPath(NSInteger index) { ...@@ -332,6 +332,8 @@ NSIndexPath* CreateIndexPath(NSInteger index) {
GridItem* item = self.items[itemIndex]; GridItem* item = self.items[itemIndex];
[self configureCell:cell withItem:item]; [self configureCell:cell withItem:item];
// Set the z index of cells so that lower rows are superposed during
// transitions between grid and horizontal layouts.
cell.layer.zPosition = itemIndex; cell.layer.zPosition = itemIndex;
#if defined(__IPHONE_13_4) #if defined(__IPHONE_13_4)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment