scroll.content < layer>

The layer to add content to. To add content, create a new Layer and set its parent to the scroll.content layer. When the content doesn't fit the ScrollComponent it will be clipped.
译:将内容添加到。添加内容,创建一个新层,设置其父母的scroll.content层。当内容不符合scrollcomponent将夹。

scroll = new ScrollComponent
    width: 100
    height: 100

layerA = new Layer
    parent: scroll.content
    image: "images/bg.png"
    width: 100
    height: 200

results matching ""

    No results matching ""