mirror of https://github.com/axmolengine/axmol.git
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:
commit
38773e2164
|
@ -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