File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1116,18 +1116,15 @@ class UICollectionViewFlowLinearLayoutImpl extends UICollectionViewFlowLayout {
1116
1116
public layoutAttributesForElementsInRect ( rect : CGRect ) {
1117
1117
const owner = this . _owner ? this . _owner . get ( ) : null ;
1118
1118
const originalLayoutAttribute = super . layoutAttributesForElementsInRect ( rect ) ;
1119
- const visibleLayoutAttributes = [ ] ;
1119
+ const visibleLayoutAttributes = NSMutableArray . alloc ( ) . init ( ) ;
1120
1120
if ( owner && owner . transformers ) {
1121
- const transformsArray = owner . transformers
1122
- . split ( ' ' )
1123
- . map ( ( s ) => Pager . mRegisteredTransformers [ s ] )
1124
- . filter ( ( s ) => ! ! s ) ;
1121
+ const transformsArray = owner . transformers . split ( ' ' ) ;
1125
1122
if ( transformsArray . length ) {
1126
1123
const collectionView = this . collectionView ;
1127
1124
const count = originalLayoutAttribute . count ;
1128
1125
for ( let i = 0 ; i < count ; i ++ ) {
1129
1126
const attributes = originalLayoutAttribute . objectAtIndex ( i ) ;
1130
- visibleLayoutAttributes [ i ] = attributes ;
1127
+ visibleLayoutAttributes . addObject ( attributes ) ;
1131
1128
for ( const transformer of transformsArray ) {
1132
1129
const nativeTransformer = Pager . mRegisteredTransformers [ transformer ] ;
1133
1130
if ( nativeTransformer ) {
You can’t perform that action at this time.
0 commit comments