1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 20:58:34 +01:00

actually check left anchors for rightmost child instead of right anchors

This commit is contained in:
Ellpeck 2019-11-06 15:05:46 +01:00
parent 061f8279d7
commit 812b7c1f04

View file

@ -359,7 +359,7 @@ namespace MLEM.Ui.Elements {
foreach (var child in this.Children) { foreach (var child in this.Children) {
if (condition != null && !condition(child)) if (condition != null && !condition(child))
continue; 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; continue;
if (rightmost == null || child.UnscrolledArea.Right >= rightmost.UnscrolledArea.Right) if (rightmost == null || child.UnscrolledArea.Right >= rightmost.UnscrolledArea.Right)
rightmost = child; rightmost = child;