mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 10:23:56 +00:00
minor tooltip fix
This commit is contained in:
parent
92d9e070fb
commit
876b369ca5
1 changed files with 3 additions and 0 deletions
|
@ -298,6 +298,9 @@ IntSize ToolTips::createToolTip(const MWGui::ToolTipInfo& info)
|
|||
const int chargeTextWidth = chargeText->getTextSize().width + 5;
|
||||
|
||||
const int chargeAndTextWidth = chargeWidth + chargeTextWidth;
|
||||
|
||||
totalSize.width = std::max(totalSize.width, chargeAndTextWidth);
|
||||
|
||||
chargeText->setCoord((totalSize.width - chargeAndTextWidth)/2, coord.top+6, chargeTextWidth, 18);
|
||||
|
||||
IntCoord chargeCoord;
|
||||
|
|
Loading…
Reference in a new issue