mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 20:58:34 +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))
|
if (condition != null && !condition(child))
|
||||||
continue;
|
continue;
|
||||||
var x = !child.Anchor.IsLeftAligned() ? child.UnscrolledArea.Width : child.UnscrolledArea.Right;
|
var x = !child.Anchor.IsLeftAligned() ? child.UnscrolledArea.Width : child.UnscrolledArea.Right;
|
||||||
if (child.UnscrolledArea.Right >= rightmostX) {
|
if (x >= rightmostX) {
|
||||||
rightmost = child;
|
rightmost = child;
|
||||||
rightmostX = x;
|
rightmostX = x;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue