mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-12-25 17:59:24 +01:00
actually check left anchors for rightmost child instead of right anchors
This commit is contained in:
parent
061f8279d7
commit
812b7c1f04
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue