Skip to content

Commit ec0f281

Browse files
Xiaoy312MartinZikmund
authored andcommitted
fix(skia): closed flyout still linger on screen
1 parent 5e16a0b commit ec0f281

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Uno.UI.Composition/Composition/ContainerVisual.skia.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ partial void InitializePartial()
3636

3737
InvalidateParentChildrenPicture(true);
3838

39+
// We need to force a redraw because at this point it's not necessarily true that
40+
// a visual in the composition tree was changed, only that it was added/removed,
41+
// so it's possible that no InvalidatePaint() calls were fired in response to this change,
42+
// so we need to force a new frame even though no paint invalidations happened just so that
43+
// already-clean added/removed visuals are reflected in the UI
44+
CompositionTarget?.RequestNewFrame();
45+
3946
if (e.Action is NotifyCollectionChangedAction.Remove or NotifyCollectionChangedAction.Reset
4047
&& e.OldItems is not null)
4148
{

0 commit comments

Comments
 (0)