Merge pull request #11869 from samuele3hu/v3_updateccs

Fix the bug that tableCellSizeForIndex of tableview get the wrong result  in the Lua
This commit is contained in:
minggo 2015-05-19 09:26:09 +08:00
commit 38773e2164
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);
});