mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-10-31 21:00:51 +01:00
change this to ceil so that elements don't just get cut off
This commit is contained in:
parent
032923c660
commit
1ee7fafc23
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ namespace MLEM.Ui.Elements {
|
|||
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 - firstChild.Area.Top;
|
||||
this.ScrollBar.MaxValue = ((childrenHeight - this.Area.Height) / this.Scale + this.ChildPadding.Y * 2).Floor();
|
||||
this.ScrollBar.MaxValue = ((childrenHeight - this.Area.Height) / this.Scale + this.ChildPadding.Y * 2).Ceil();
|
||||
|
||||
// update the render target
|
||||
var targetArea = this.GetRenderTargetArea();
|
||||
|
|
Loading…
Reference in a new issue