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

why was this here

This commit is contained in:
Ellpeck 2019-08-24 20:33:55 +02:00
parent 90352c49f4
commit 13c7aa90e2

View file

@ -67,7 +67,7 @@ namespace MLEM.Ui.Elements {
var firstChild = this.Children[1];
var lowestChild = this.GetLowestChild(false, true);
// the max value of the scrollbar is the amount of non-scaled pixels taken up by overflowing components
var childrenHeight = lowestChild.Area.Bottom + 1 - firstChild.Area.Top;
var childrenHeight = lowestChild.Area.Bottom - firstChild.Area.Top;
this.ScrollBar.MaxValue = ((childrenHeight - this.Area.Height) / this.Scale + this.ChildPadding.Y * 2).Floor();
// update the render target