Quick 3.2 的uiloader 读取ScrollView后 无滑动

rt,小弟在cocos studio里面导出了拼好的界面,里面有scrollview ,根据里面的设置属性来看 innerHeight / innerWidth 分别是内容的高宽属性

但是我只在UIScrollView的创建代码里面看到了capIn这个属性的操作,请问下如何才能设置滚动呢…拜谢~~

:10:

你是怎么创建的把整个代码贴一下。

— Begin quote from ____

引用第1楼yangtao19cs于2014-09-30 09:26发表的 :
你是怎么创建的把整个代码贴一下。 http://www.cocoachina.com/bbs/job.php?action=topost&tid=233156&pid=1067484

— End quote



local node ,width ,height = cc.uiloader:load("SAAP_BattlePage.json")
width = width or display.width
height = height or display.height
if node then           
    node:setPosition((display.width - width)/2, (display.height - height)/2)        
    self:addChild(node)
end



麻烦看看

— Begin quote from ____

引用第1楼yangtao19cs于2014-09-30 09:26发表的 :
你是怎么创建的把整个代码贴一下。 http://www.cocoachina.com/bbs/job.php?action=topost&tid=233156&pid=1067484

— End quote

我是3.2 rc0的

你这scrollview 在SAAP_BattlePage.json 里面? 你没有做什么设置啊。

— Begin quote from ____

引用第4楼yangtao19cs于2014-09-30 13:07发表的 回 2楼(wen495713) 的帖子 :
你这scrollview 在SAAP_BattlePage.json 里面? 你没有做什么设置啊。 http://www.cocoachina.com/bbs/job.php?action=topost&tid=233156&pid=1067700

— End quote

{
“classname”: “ScrollView”,
“name”: null,
“children”: ],
“options”: {
“__type”: “ScrollViewSurrogate:#EditorCommon.JsonModel.Component.GUI”,
“classname”: “ScrollView”,
“name”: “Battle_Info_Chat_board”,
“ZOrder”: 5,
“actiontag”: 49500620,
“anchorPointX”: 0,
“anchorPointY”: 0,
“classType”: “CocoStudio.EngineAdapterWrap.CSScrollView”,
“colorB”: 255,
“colorG”: 255,
“colorR”: 255,
“customProperty”: “”,
“flipX”: false,
“flipY”: false,
“height”: 390,
“ignoreSize”: false,
“layoutParameter”: null,
“opacity”: 255,
“positionPercentX”: 0.03125,
“positionPercentY”: -0.84074074,
“positionType”: 0,
“rotation”: 0,
“scaleX”: 1,
“scaleY”: 1,
“sizePercentX”: 0.9375,
“sizePercentY”: 0.7222222,
“sizeType”: 0,
“tag”: 169,
“touchAble”: true,
“useMergedTexture”: false,
“visible”: true,
“width”: 600,
“x”: 20,
“y”: -454,
“backGroundImage”: null,
“backGroundImageData”: null,
“backGroundScale9Enable”: false,
“bgColorB”: 100,
“bgColorG”: 150,
“bgColorOpacity”: 128,
“bgColorR”: 255,
“bgEndColorB”: 100,
“bgEndColorG”: 150,
“bgEndColorR”: 255,
“bgStartColorB”: 255,
“bgStartColorG”: 255,
“bgStartColorR”: 255,
“bounceEnable”: true,
“capInsetsHeight”: 1,
“capInsetsWidth”: 1,
“capInsetsX”: 0,
“capInsetsY”: 0,
“clipAble”: false,
“colorType”: 1,
“direction”: 1,
“editorClipAble”: false,
“innerHeight”: 1500,
“innerWidth”: 600,
“layoutType”: 0,
“vectorX”: 0,
“vectorY”: -0.5
}
}

这个是scrollview的设置,麻烦你看看…

你这个ScrollView 是一个空的ScrollView。

好吧…我懂了…感谢感谢~~~