1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-26 06:28:35 +01:00

make sure to always pick the closest older sibling

This commit is contained in:
Ellpeck 2019-08-24 15:14:16 +02:00
parent d231386f86
commit df59ae7260

View file

@ -343,7 +343,7 @@ namespace MLEM.Ui.Elements {
continue;
if (child.Anchor > Anchor.TopRight && child.Anchor < Anchor.AutoLeft)
continue;
if (lowest == null || child.Area.Bottom > lowest.Area.Bottom)
if (lowest == null || child.Area.Bottom >= lowest.Area.Bottom)
lowest = child;
}
return lowest;