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

fixed GetRightmostChild using the wrong variable for calculation

This commit is contained in:
Ell 2022-07-27 11:52:28 +02:00
parent 87d04e1abd
commit 7a0464e8d6

View file

@ -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;
}