Skip to content

Commit 451df9d

Browse files
committed
Revert "removed outdated code in Group"
This reverts commit eda1a89.
1 parent 723d720 commit 451df9d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

MLEM.Ui/Elements/Group.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,12 @@ public Group(Anchor anchor, Vector2 size, bool setWidthBasedOnChildren, bool set
3131
base.CanBeSelected = false;
3232
}
3333

34+
/// <inheritdoc />
35+
public override void Draw(GameTime time, SpriteBatch batch, float alpha, SpriteBatchContext context) {
36+
// since the group never accesses its own area when drawing, we have to update it manually
37+
this.UpdateAreaIfDirty();
38+
base.Draw(time, batch, alpha, context);
39+
}
40+
3441
}
3542
}

0 commit comments

Comments
 (0)