mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 14:19:41 +00:00
Fix overlapping text in SpellWindow when the window is too small
This commit is contained in:
parent
d777739425
commit
17b15a6f4f
1 changed files with 5 additions and 0 deletions
|
@ -190,6 +190,7 @@ namespace MWGui
|
||||||
costChance->setNeedMouseFocus(false);
|
costChance->setNeedMouseFocus(false);
|
||||||
costChance->setStateSelected(*it == MWBase::Environment::get().getWindowManager()->getSelectedSpell());
|
costChance->setStateSelected(*it == MWBase::Environment::get().getWindowManager()->getSelectedSpell());
|
||||||
|
|
||||||
|
t->setSize(mWidth-12-costChance->getTextSize().width, t->getHeight());
|
||||||
|
|
||||||
mHeight += spellHeight;
|
mHeight += spellHeight;
|
||||||
}
|
}
|
||||||
|
@ -255,6 +256,8 @@ namespace MWGui
|
||||||
if (store.getSelectedEnchantItem() != store.end())
|
if (store.getSelectedEnchantItem() != store.end())
|
||||||
costCharge->setStateSelected(item == *store.getSelectedEnchantItem());
|
costCharge->setStateSelected(item == *store.getSelectedEnchantItem());
|
||||||
|
|
||||||
|
t->setSize(mWidth-12-costCharge->getTextSize().width, t->getHeight());
|
||||||
|
|
||||||
mHeight += spellHeight;
|
mHeight += spellHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -287,6 +290,8 @@ namespace MWGui
|
||||||
groupWidget2->setCaptionWithReplacing(label2);
|
groupWidget2->setCaptionWithReplacing(label2);
|
||||||
groupWidget2->setTextAlign(MyGUI::Align::Right);
|
groupWidget2->setTextAlign(MyGUI::Align::Right);
|
||||||
groupWidget2->setNeedMouseFocus(false);
|
groupWidget2->setNeedMouseFocus(false);
|
||||||
|
|
||||||
|
groupWidget->setSize(mWidth-8-groupWidget2->getTextSize().width, groupWidget->getHeight());
|
||||||
}
|
}
|
||||||
|
|
||||||
mHeight += 24;
|
mHeight += 24;
|
||||||
|
|
Loading…
Reference in a new issue