mirror of https://github.com/axmolengine/axmol.git
Fix the bug that tableCellSizeForIndex of tableview get the wrong result in the Lua
This commit is contained in:
parent
562c711cda
commit
da2314b00a
|
@ -647,9 +647,9 @@ public:
|
|||
LuaEngine::getInstance()->handleEvent(ScriptHandlerMgr::HandlerType::TABLECELL_SIZE_FOR_INDEX, (void*)&data,2,[&](lua_State* L,int numReturn){
|
||||
CCASSERT(numReturn == 2, "tableCellSizeForIndex return count error");
|
||||
ValueVector vec;
|
||||
width = (float)tolua_tonumber(L, -1, 0);
|
||||
height = (float)tolua_tonumber(L, -1, 0);
|
||||
lua_pop(L, 1);
|
||||
height = (float)tolua_tonumber(L, -1, 0);
|
||||
width = (float)tolua_tonumber(L, -1, 0);
|
||||
lua_pop(L, 1);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue