mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-12-25 17:59:24 +01:00
fixed GetRightmostChild using the wrong variable for calculation
This commit is contained in:
parent
87d04e1abd
commit
7a0464e8d6
1 changed files with 1 additions and 1 deletions
|
@ -800,7 +800,7 @@ namespace MLEM.Ui.Elements {
|
|||
if (condition != null && !condition(child))
|
||||
continue;
|
||||
var x = !child.Anchor.IsLeftAligned() ? child.UnscrolledArea.Width : child.UnscrolledArea.Right;
|
||||
if (child.UnscrolledArea.Right >= rightmostX) {
|
||||
if (x >= rightmostX) {
|
||||
rightmost = child;
|
||||
rightmostX = x;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue