Fix the bug that tableCellSizeForIndex of tableview get the wrong result in the Lua

This commit is contained in:
samuele3hu 2015-05-18 09:41:35 +08:00
parent 562c711cda
commit da2314b00a
1 changed files with 2 additions and 2 deletions

View File

@ -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);
});