mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-15 18:39:51 +00:00
Fix ItemView sizing bug
This commit is contained in:
parent
f931ba2efc
commit
a29abb85f1
@ -56,7 +56,7 @@ void ItemView::layoutWidgets()
|
|||||||
int x = 0;
|
int x = 0;
|
||||||
int y = 0;
|
int y = 0;
|
||||||
MyGUI::Widget* dragArea = mScrollView->getChildAt(0);
|
MyGUI::Widget* dragArea = mScrollView->getChildAt(0);
|
||||||
int maxHeight = dragArea->getHeight();
|
int maxHeight = mScrollView->getHeight();
|
||||||
|
|
||||||
int rows = maxHeight/42;
|
int rows = maxHeight/42;
|
||||||
rows = std::max(rows, 1);
|
rows = std::max(rows, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user