mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-29 21:56:54 +02:00
try to fix
This commit is contained in:
parent
5c5576313b
commit
080630b39f
@ -821,7 +821,7 @@ SelectionTab::CMapInfoTooltipBox::CMapInfoTooltipBox(std::string text, ResourceI
|
|||||||
pos = Rect(0, 0, 3 * BORDER + 2 * IMAGE_SIZE, 2000);
|
pos = Rect(0, 0, 3 * BORDER + 2 * IMAGE_SIZE, 2000);
|
||||||
|
|
||||||
auto drawLabel = [&]() {
|
auto drawLabel = [&]() {
|
||||||
label = std::make_shared<CTextBox>(text, Rect(BORDER, BORDER, pos.w - 2 * BORDER, 350), 0, FONT_MEDIUM, ETextAlignment::CENTER, Colors::WHITE);
|
label = std::make_shared<CTextBox>(text, Rect(BORDER, BORDER, BORDER + 2 * IMAGE_SIZE, 350), 0, FONT_MEDIUM, ETextAlignment::CENTER, Colors::WHITE);
|
||||||
if(!label->slider)
|
if(!label->slider)
|
||||||
label->resize(label->label->textSize);
|
label->resize(label->label->textSize);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user