mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
minor tooltip fix
This commit is contained in:
parent
92d9e070fb
commit
876b369ca5
@ -298,6 +298,9 @@ IntSize ToolTips::createToolTip(const MWGui::ToolTipInfo& info)
|
|||||||
const int chargeTextWidth = chargeText->getTextSize().width + 5;
|
const int chargeTextWidth = chargeText->getTextSize().width + 5;
|
||||||
|
|
||||||
const int chargeAndTextWidth = chargeWidth + chargeTextWidth;
|
const int chargeAndTextWidth = chargeWidth + chargeTextWidth;
|
||||||
|
|
||||||
|
totalSize.width = std::max(totalSize.width, chargeAndTextWidth);
|
||||||
|
|
||||||
chargeText->setCoord((totalSize.width - chargeAndTextWidth)/2, coord.top+6, chargeTextWidth, 18);
|
chargeText->setCoord((totalSize.width - chargeAndTextWidth)/2, coord.top+6, chargeTextWidth, 18);
|
||||||
|
|
||||||
IntCoord chargeCoord;
|
IntCoord chargeCoord;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user