1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Fixes for positioning on popups with components

This commit is contained in:
Ivan Savenko
2024-02-26 23:26:06 +02:00
parent 93b3cb3af5
commit 99cb1df91d
6 changed files with 60 additions and 46 deletions

View File

@@ -374,9 +374,6 @@ 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;