SHOW:
|
|
- or go back to the newest paste.
1 | ScrollView { | |
2 | id: root | |
3 | - | default property alias children1: adhereFlickable.children |
3 | + | property Item content: null |
4 | ||
5 | Flickable { | |
6 | id: adhereFlickable | |
7 | height: root.contentHeight | |
8 | width: root.contentWidth | |
9 | contentHeight: root.contentHeight | |
10 | contentWidth: root.contentWidth | |
11 | boundsBehavior: Flickable.StopAtBounds | |
12 | - | onChildrenChanged: { |
12 | + | |
13 | - | print("fuck") |
13 | + | |
14 | - | if (children.length > 1) |
14 | + | onContentChanged: { |
15 | - | children[children.length - 1].parent = adhereFlickable |
15 | + | if(content) { |
16 | content.parent = adhereFlickable | |
17 | } | |
18 | } | |
19 | } |