From f02121506649710e9dce8137fa6035f7e840c623 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 1 Oct 2021 03:42:27 +0200 Subject: [PATCH] fixed VerticalSpace height parameter being an integer --- CHANGELOG.md | 3 +++ MLEM.Ui/Elements/VerticalSpace.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b7d9bb3..c0bcbdc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ Jump to version: - [5.0.0](#500) ## 5.2.0 (Unreleased) +### MLEM.Ui +Fixes +- Fixed VerticalSpace height parameter being an integer ## 5.1.0 ### MLEM diff --git a/MLEM.Ui/Elements/VerticalSpace.cs b/MLEM.Ui/Elements/VerticalSpace.cs index 109ac32..70828ba 100644 --- a/MLEM.Ui/Elements/VerticalSpace.cs +++ b/MLEM.Ui/Elements/VerticalSpace.cs @@ -11,7 +11,7 @@ namespace MLEM.Ui.Elements { /// Creates a new vertical space with the given settings /// /// The height of the vertical space - public VerticalSpace(int height) : base(Anchor.AutoCenter, new Vector2(1, height)) { + public VerticalSpace(float height) : base(Anchor.AutoCenter, new Vector2(1, height)) { this.CanBeSelected = false; }