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

Commit 6438e0b

Browse files
authored
Merge pull request #133 from UnityTech/textselection
fix assertion triggered by disposing a pageView before its initializa…
2 parents 80afbb4 + 58e19b8 commit 6438e0b

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+
//The former widget tree must be layout first before its destruction
147+
this.drawFrame();
146148
this.attachRootWidget(null);
147149
this.buildOwner.buildScope(this._renderViewElement);
148150
this.buildOwner.finalizeTree();

0 commit comments

Comments
 (0)