From fef1d7959dc79886bcf17e8affc6435e059521a9 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 4 Sep 2019 17:23:23 +0200 Subject: [PATCH] this actually does not work --- MLEM.Ui/Elements/Element.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/MLEM.Ui/Elements/Element.cs b/MLEM.Ui/Elements/Element.cs index 7259417..1a7c885 100644 --- a/MLEM.Ui/Elements/Element.cs +++ b/MLEM.Ui/Elements/Element.cs @@ -306,12 +306,8 @@ namespace MLEM.Ui.Elements { } } } - - var newArea = new Rectangle(pos, actualSize); - if (newArea == this.area) - return; - this.area = newArea; + this.area = new Rectangle(pos, actualSize); this.OnAreaUpdated?.Invoke(this); foreach (var child in this.Children)