File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -1242,6 +1242,9 @@ class UICollectionViewFlowLayoutImpl extends UICollectionViewFlowLayout {
12421242 const attributes = attributesArray . objectAtIndex ( index ) ;
12431243 if ( attributes . representedElementCategory === UICollectionElementCategory . Cell ) {
12441244 const row = attributes . indexPath . row ;
1245+ if ( owner . itemOverlap ) {
1246+ attributes . zIndex = row ;
1247+ }
12451248 const itemOverlap = owner . itemOverlap ( owner . getItemAtIndex ( row ) , row ) ;
12461249 const xPosition = attributes . center . x + Utils . layout . toDeviceIndependentPixels ( Length . toDevicePixels ( itemOverlap [ 1 ] , 0 ) + Length . toDevicePixels ( itemOverlap [ 2 ] , 0 ) ) * row ;
12471250 const yPosition = attributes . center . y + Utils . layout . toDeviceIndependentPixels ( Length . toDevicePixels ( itemOverlap [ 0 ] , 0 ) + Length . toDevicePixels ( itemOverlap [ 2 ] , 0 ) ) * row ;
You can’t perform that action at this time.
0 commit comments