1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 03:53:54 +00:00

fix items getting cut off

This commit is contained in:
scrawl 2012-05-12 20:14:19 +02:00
parent f3c88adc0b
commit e6e50f4ad4

View file

@ -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);
}