Better size & positioning of infoboxes

This commit is contained in:
Ivan Savenko committed 2024-02-26 22:04:30 +02:00
1 parent ec159f2fdd
commit 93b3cb3af5
3 files changed
+46 -39

No files matched your search

+3
View File
@@ -374,6 +374,9 @@ void CTextBox::trimToFit()
if (slider)
return;
if(label->alignment == ETextAlignment::CENTER)
moveBy((pos.dimensions() - label->textSize) / 2);
pos.w = label->textSize.x;
pos.h = label->textSize.y;
label->pos.w = label->textSize.x;