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:
parent
f3c88adc0b
commit
e6e50f4ad4
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue