From e6e50f4ad41a4b3bc5c1f50661953cdd71de5d98 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sat, 12 May 2012 20:14:19 +0200 Subject: [PATCH] fix items getting cut off --- apps/openmw/mwgui/container.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/openmw/mwgui/container.cpp b/apps/openmw/mwgui/container.cpp index 448ae6482..84b1582cb 100644 --- a/apps/openmw/mwgui/container.cpp +++ b/apps/openmw/mwgui/container.cpp @@ -147,10 +147,10 @@ void ContainerBase::drawItems() text->setTextAlign(MyGUI::Align::Right); text->setNeedMouseFocus(false); - y += 36; + y += 42; if (y > maxHeight) { - x += 36; + x += 42; y = 0; } @@ -159,7 +159,7 @@ void ContainerBase::drawItems() } } - MyGUI::IntSize size = MyGUI::IntSize(std::max(mItemView->getSize().width, x), mItemView->getSize().height); + MyGUI::IntSize size = MyGUI::IntSize(std::max(mItemView->getSize().width, x+42), mItemView->getSize().height); mItemView->setCanvasSize(size); mContainerWidget->setSize(size); }