mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-13 20:09:40 +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->setTextAlign(MyGUI::Align::Right);
|
||||||
text->setNeedMouseFocus(false);
|
text->setNeedMouseFocus(false);
|
||||||
|
|
||||||
y += 36;
|
y += 42;
|
||||||
if (y > maxHeight)
|
if (y > maxHeight)
|
||||||
{
|
{
|
||||||
x += 36;
|
x += 42;
|
||||||
y = 0;
|
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);
|
mItemView->setCanvasSize(size);
|
||||||
mContainerWidget->setSize(size);
|
mContainerWidget->setSize(size);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue