We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3458c63 commit 6737df6Copy full SHA for 6737df6
src/collectionview/collectionview.ios.ts
@@ -628,7 +628,12 @@ export class CollectionView extends CollectionViewBase {
628
this._addView(view);
629
const innerView = NSCellView.new() as NSCellView;
630
innerView.view = new WeakRef(view);
631
- // view['performLayout'] = ()=>{};
+ // for a cell to update correctly on cell layout change we need
632
+ // to do it ourself instead of "propagating it"
633
+ view['performLayout'] = () => {
634
+ this.measureCell(cell, view, indexPath);
635
+ this.layoutCell(indexPath.row, cell, view);
636
+ };
637
innerView.addSubview(view.nativeViewProtected);
638
cell.contentView.addSubview(innerView);
639
}
0 commit comments