scroll.contentInset < object>

Inset for the content. This will give your content extra padding between the constraints and the actual content layers.
译:嵌入的内容。这将在约束和实际内容层之间给您的内容额外的填充。

scroll = new ScrollComponent
    width: 100
    height: 100

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

scroll.contentInset =
    top: 20
    right: 0
    bottom: 20
    left: 0

results matching ""

    No results matching ""