mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 23:21:20 -04:00
fix items getting cut off
This commit is contained in:
parent
f3c88adc0b
commit
e6e50f4ad4
@ -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…
x
Reference in New Issue
Block a user