safe margin

This commit is contained in:
XTigerHyperX 2021-11-08 21:14:45 +01:00
parent 1bd1e4dff2
commit de123e1fcf
No known key found for this signature in database
GPG Key ID: 8A8613BA3CC915BD

View File

@ -255,7 +255,7 @@ namespace FModel.Creator.Bases.FN
public void Draw(SKCanvas c, SKColor sliderColor, int width, int height, ref float y)
{
while (_statPaint.MeasureText(_statName) > height * 2)
while (_statPaint.MeasureText(_statName) > height * 2 - 40)
{
_statPaint.TextSize -= 1;
}