mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 07:53:53 +00:00
Merge pull request #1232 from akortunov/tooltipfix
Tooltip maximum width cap
This commit is contained in:
commit
f230df3d1c
1 changed files with 2 additions and 2 deletions
|
@ -414,11 +414,11 @@ namespace MWGui
|
||||||
|
|
||||||
const MyGUI::IntPoint padding(8, 8);
|
const MyGUI::IntPoint padding(8, 8);
|
||||||
|
|
||||||
const int maximumWidth = 500;
|
|
||||||
|
|
||||||
const int imageCaptionHPadding = (caption != "" ? 8 : 0);
|
const int imageCaptionHPadding = (caption != "" ? 8 : 0);
|
||||||
const int imageCaptionVPadding = (caption != "" ? 4 : 0);
|
const int imageCaptionVPadding = (caption != "" ? 4 : 0);
|
||||||
|
|
||||||
|
const int maximumWidth = MyGUI::RenderManager::getInstance().getViewSize().width - imageCaptionHPadding * 2;
|
||||||
|
|
||||||
std::string realImage = MWBase::Environment::get().getWindowManager()->correctIconPath(image);
|
std::string realImage = MWBase::Environment::get().getWindowManager()->correctIconPath(image);
|
||||||
|
|
||||||
MyGUI::EditBox* captionWidget = mDynamicToolTipBox->createWidget<MyGUI::EditBox>("NormalText", MyGUI::IntCoord(0, 0, 300, 300), MyGUI::Align::Left | MyGUI::Align::Top, "ToolTipCaption");
|
MyGUI::EditBox* captionWidget = mDynamicToolTipBox->createWidget<MyGUI::EditBox>("NormalText", MyGUI::IntCoord(0, 0, 300, 300), MyGUI::Align::Left | MyGUI::Align::Top, "ToolTipCaption");
|
||||||
|
|
Loading…
Reference in a new issue