Skip to content

Commit 2259114

Browse files
committed
Fixed missing layout refresh bugs.
1 parent cc5e433 commit 2259114

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Nu/Nu/World/WorldFacets.fs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2279,8 +2279,8 @@ type LayoutFacet () =
22792279
if mountee.GetExists world &&
22802280
mountee.Has<LayoutFacet> world then
22812281
match mountee.GetLayout world with
2282-
| Flow _ -> top <- mountee; currentOpt <- Some top
2283-
| Dock _ | Grid _ | Manual -> currentOpt <- None
2282+
| Flow _ | Grid (_, Some _, _) -> top <- mountee; currentOpt <- Some top
2283+
| Dock _ | Grid (_, None, _) | Manual -> currentOpt <- None
22842284
else currentOpt <- None
22852285
else currentOpt <- None
22862286
| None -> currentOpt <- None
@@ -2332,6 +2332,7 @@ type LayoutFacet () =
23322332
World.sense handleLayout entity.Perimeter.ChangeEvent entity (nameof LayoutFacet) world
23332333
World.sense handleLayout entity.Layout.ChangeEvent entity (nameof LayoutFacet) world
23342334
World.sense handleLayout entity.LayoutMargin.ChangeEvent entity (nameof LayoutFacet) world
2335+
World.sense handleLayoutPlus entity.LayoutOrder.ChangeEvent entity (nameof LayoutFacet) world
23352336

23362337
[<AutoOpen>]
23372338
module SkyBoxFacetExtensions =

0 commit comments

Comments
 (0)