From 83c45ed02d5f119dd901e577e1fcdf5ae61ff7a4 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 13 Aug 2019 16:05:18 +0200 Subject: [PATCH] made the group component set height based on children by default --- MLEM.Ui/Elements/Group.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MLEM.Ui/Elements/Group.cs b/MLEM.Ui/Elements/Group.cs index 470a220..1089d20 100644 --- a/MLEM.Ui/Elements/Group.cs +++ b/MLEM.Ui/Elements/Group.cs @@ -3,7 +3,8 @@ using Microsoft.Xna.Framework; namespace MLEM.Ui.Elements { public class Group : Element { - public Group(Anchor anchor, Vector2 size) : base(anchor, size) { + public Group(Anchor anchor, Vector2 size, bool setHeightBasedOnChildren = true) : base(anchor, size) { + this.SetHeightBasedOnChildren = setHeightBasedOnChildren; this.IgnoresMouse = true; }