mirror of https://github.com/axmolengine/axmol.git
parent
0564d43478
commit
b3279bafa7
|
@ -417,7 +417,7 @@ void Menu::alignItemsInColumnsWithArray(const ValueVector& rows)
|
|||
// check if too many rows/columns for available menu items
|
||||
CCASSERT(! columnsOccupied, "columnsOccupied should be 0.");
|
||||
|
||||
Size winSize = Director::getInstance()->getWinSize();
|
||||
Size winSize = getContentSize();
|
||||
|
||||
row = 0;
|
||||
rowHeight = 0;
|
||||
|
@ -519,7 +519,7 @@ void Menu::alignItemsInRowsWithArray(const ValueVector& columns)
|
|||
// check if too many rows/columns for available menu items.
|
||||
CCASSERT(! rowsOccupied, "rowsOccupied should be 0.");
|
||||
|
||||
Size winSize = Director::getInstance()->getWinSize();
|
||||
Size winSize = getContentSize();
|
||||
|
||||
column = 0;
|
||||
columnWidth = 0;
|
||||
|
|
Loading…
Reference in New Issue