Hello,
I am using cocos2d-js 3.7 , and designed UI with CocoStudio1.6 .
I draged a listview and a panel to the panel_main.
Then I set the panel as listview’s itemModel.
Something is wrong when I call listview.pushBackDefaultItem();
Here is the error message:
Uncaught TypeError: layoutParameter.setGravity is not a function
ccui.ListView.ccui.ScrollView.extend._remedyVerticalLayoutParameter
ccui.ListView.ccui.ScrollView.extend._remedyLayoutParameter
ccui.ListView.ccui.ScrollView.extend.pushBackDefaultItem
cc.Layer.extend.refreshUI
I set theGravity,then everything is ok