Skip to content

Commit 8b39db9

Browse files
committed
fix(ios): ensure we refresh visible items
while going from loaded/unloaded/loaded
1 parent 14bafb6 commit 8b39db9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/collectionview/index.ios.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,13 @@ export class CollectionView extends CollectionViewBase {
174174
get _childrenCount(): number {
175175
return this._map.size;
176176
}
177+
onLoaded() {
178+
super.onLoaded()
179+
// we need refreshVisibleItems
180+
// if some items were updated while unloaded they wont re layout
181+
// after this (because we are not a Layout view)
182+
this.refreshVisibleItems()
183+
}
177184
eachChild(callback: (child: ViewBase) => boolean) {
178185
// used for css updates (like theme change)
179186
this._map.forEach((view) => {

0 commit comments

Comments
 (0)