Skip to content

Commit

Permalink
Merge pull request #38 from Redth/less-ios-layout-churn
Browse files Browse the repository at this point in the history
Do less layout churning when invalidating data
  • Loading branch information
Redth committed Apr 20, 2024
2 parents f23a080 + b2c0f2d commit 245a2d6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,13 @@ void UpdateEmptyView()
public void InvalidateData()
{
this.PlatformView.InvokeOnMainThread(() => {
layout?.InvalidateLayout();
//layout?.InvalidateLayout();
UpdateEmptyViewVisibility();
PlatformView?.SetNeedsLayout();
//PlatformView?.SetNeedsLayout();
PlatformView?.ReloadData();
PlatformView?.LayoutIfNeeded();
//PlatformView?.LayoutIfNeeded();
});

}
Expand Down

0 comments on commit 245a2d6

Please sign in to comment.