From 812b7c1f04f933b6e5b54ea4bd948b6aa4b1191d Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 6 Nov 2019 15:05:46 +0100 Subject: [PATCH] actually check left anchors for rightmost child instead of right anchors --- MLEM.Ui/Elements/Element.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MLEM.Ui/Elements/Element.cs b/MLEM.Ui/Elements/Element.cs index e6dd43c..40f9b93 100644 --- a/MLEM.Ui/Elements/Element.cs +++ b/MLEM.Ui/Elements/Element.cs @@ -359,7 +359,7 @@ namespace MLEM.Ui.Elements { foreach (var child in this.Children) { if (condition != null && !condition(child)) continue; - if (child.Anchor < Anchor.BottomRight && child.Anchor != Anchor.TopRight && child.Anchor != Anchor.CenterRight) + if (child.Anchor < Anchor.AutoLeft && child.Anchor != Anchor.TopLeft && child.Anchor != Anchor.CenterLeft && child.Anchor != Anchor.BottomLeft) continue; if (rightmost == null || child.UnscrolledArea.Right >= rightmost.UnscrolledArea.Right) rightmost = child;