From 30d0e93cf438f5173284407909e252531b1799cf Mon Sep 17 00:00:00 2001 From: eduard Date: Sun, 2 Dec 2012 14:12:18 +0100 Subject: [PATCH] Fix window formatting on tool tip with too log titles --- apps/openmw/mwgui/tooltips.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/openmw/mwgui/tooltips.cpp b/apps/openmw/mwgui/tooltips.cpp index a050005ec..621d275bb 100644 --- a/apps/openmw/mwgui/tooltips.cpp +++ b/apps/openmw/mwgui/tooltips.cpp @@ -506,14 +506,14 @@ IntSize ToolTips::createToolTip(const MWGui::ToolTipInfo& info) if (captionSize.width > maximumWidth){ mHorizontalScrollIndex = mHorizontalScrollIndex + 2; if (mHorizontalScrollIndex > captionSize.width){ - mHorizontalScrollIndex = -totalSize.width; + mHorizontalScrollIndex = -totalSize.width; } int horizontal_scroll = mHorizontalScrollIndex; if (horizontal_scroll < 40){ horizontal_scroll = 40; }else{ - horizontal_scroll = 80 - mHorizontalScrollIndex; - } + horizontal_scroll = 80 - mHorizontalScrollIndex; + } captionWidget->setPosition (IntPoint(horizontal_scroll, captionWidget->getPosition().top + padding.top)); } else { captionWidget->setPosition (captionWidget->getPosition() + padding);