Remove this parameter from FloatMath.Clamp.

That was a stupid idea.
This commit is contained in:
Pieter-Jan Briers
2020-08-12 21:15:26 +02:00
parent f182ff5613
commit e76003948b
5 changed files with 5 additions and 5 deletions

View File

@@ -122,7 +122,7 @@ namespace Content.Client.Chat
var screenPos = lowerCenter - (Width / 2, ContentHeight + _verticalOffsetAchieved);
LayoutContainer.SetPosition(this, screenPos);
var height = (lowerCenter.Y - screenPos.Y).Clamp(0, ContentHeight);
var height = FloatMath.Clamp(lowerCenter.Y - screenPos.Y, 0, ContentHeight);
LayoutContainer.SetSize(this, (Size.X, height));
}