fix trait points bar rendering on ultrawide montiors (#5275)

* whoopsie
This commit is contained in:
Milon 2026-01-24 21:55:31 +01:00 committed by GitHub
parent 6a45579bd5
commit 1b464c265d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ public sealed partial class TraitsTab : BoxContainer
// If parent width is 0 (not laid out yet), defer until layout happens
if (parentWidth > 0)
{
GlobalPointsBar.SetWidth = (int)(parentWidth * percentage);
GlobalPointsBar.SetWidth = (int)((parentWidth - 2 ) * percentage);
_awaitingLayoutUpdate = false;
}
else if (!_awaitingLayoutUpdate)