mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-26 22:48:34 +01:00
made the group component set height based on children by default
This commit is contained in:
parent
f56b7fbeff
commit
83c45ed02d
1 changed files with 2 additions and 1 deletions
|
@ -3,7 +3,8 @@ using Microsoft.Xna.Framework;
|
||||||
namespace MLEM.Ui.Elements {
|
namespace MLEM.Ui.Elements {
|
||||||
public class Group : Element {
|
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;
|
this.IgnoresMouse = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue