Changeset View
Changeset View
Standalone View
Standalone View
src/controls/ScrollablePage.qml
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Line(s) | 61 | Page { | |||
---|---|---|---|---|---|
116 | Theme.colorSet: flickable && flickable.hasOwnProperty("model") ? Theme.View : Theme.Window | 116 | Theme.colorSet: flickable && flickable.hasOwnProperty("model") ? Theme.View : Theme.Window | ||
117 | 117 | | |||
118 | RefreshableScrollView { | 118 | RefreshableScrollView { | ||
119 | id: scrollView | 119 | id: scrollView | ||
120 | z: 0 | 120 | z: 0 | ||
121 | //child of root as it shouldn't have margins | 121 | //child of root as it shouldn't have margins | ||
122 | parent: root | 122 | parent: root | ||
123 | page: root | 123 | page: root | ||
124 | topPadding: (applicationWindow() && applicationWindow().header ? applicationWindow().header.preferredHeight : 0) + (contentItem == flickableItem ? 0 : root.topPadding) | 124 | topPadding: root.topPadding | ||
125 | leftPadding: root.leftPadding | 125 | leftPadding: root.leftPadding | ||
126 | rightPadding: root.rightPadding | 126 | rightPadding: root.rightPadding | ||
127 | bottomPadding: contentItem == flickableItem ? 0 : root.bottomPadding | 127 | bottomPadding: contentItem == flickableItem ? 0 : root.bottomPadding | ||
128 | anchors { | 128 | anchors { | ||
129 | fill: parent | 129 | fill: parent | ||
130 | topMargin: root.header ? root.header.height : 0 | 130 | topMargin: root.header ? root.header.height : 0 | ||
131 | bottomMargin: root.footer ? root.footer.height : 0 | 131 | bottomMargin: root.footer ? root.footer.height : 0 | ||
132 | } | 132 | } | ||
Show All 32 Lines |