Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 2472093

Browse files
committed
fix assertion triggered by disposing a pageView before its initialization, which is done on its first PerformLayout call
1 parent e7aafd3 commit 2472093

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Runtime/widgets/binding.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ public void detachRootWidget() {
143143
return;
144144
}
145145

146+
//draw one frame to ensure that the former widget tree has been layout for at least once
147+
this.drawFrame();
146148
this.attachRootWidget(null);
147149
this.buildOwner.buildScope(this._renderViewElement);
148150
this.buildOwner.finalizeTree();

0 commit comments

Comments
 (0)