Better size & positioning of infoboxes
This commit is contained in:
1 parent
ec159f2fdd
commit
93b3cb3af5
3 files changed
+46
-39
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user