Changeset View
Changeset View
Standalone View
Standalone View
src/controls/templates/OverlaySheet.qml
Show First 20 Lines • Show All 261 Lines • ▼ Show 20 Line(s) | 147 | readonly property Item rootItem: MouseArea { | |||
---|---|---|---|---|---|
262 | Item { | 262 | Item { | ||
263 | id: flickableContents | 263 | id: flickableContents | ||
264 | //anchors.horizontalCenter: parent.horizontalCenter | 264 | //anchors.horizontalCenter: parent.horizontalCenter | ||
265 | x: (mainItem.width - width) / 2 | 265 | x: (mainItem.width - width) / 2 | ||
266 | 266 | | |||
267 | readonly property real headerHeight: scrollView.flickableItem && root.contentItem.headerItem ? root.contentItem.headerItem.height : 0 | 267 | readonly property real headerHeight: scrollView.flickableItem && root.contentItem.headerItem ? root.contentItem.headerItem.height : 0 | ||
268 | y: scrollView.flickableItem && root.contentItem.hasOwnProperty("contentY") ? -scrollView.flickableItem.contentY - headerHeight : 0 | 268 | y: scrollView.flickableItem && root.contentItem.hasOwnProperty("contentY") ? -scrollView.flickableItem.contentY - headerHeight : 0 | ||
269 | width: root.contentItem.implicitWidth <= 0 ? mainItem.width : Math.max(mainItem.width/2, Math.min(mainItem.width, root.contentItem.implicitWidth)) | 269 | width: root.contentItem.implicitWidth <= 0 ? mainItem.width : Math.max(mainItem.width/2, Math.min(mainItem.width, root.contentItem.implicitWidth)) | ||
270 | height: scrollView.flickableItem && root.contentItem.hasOwnProperty("contentY") ? scrollView.flickableItem.contentHeight + headerHeight : (root.contentItem.height + topPadding + bottomPadding + Units.iconSizes.medium + Units.gridUnit) | 270 | height: scrollView.flickableItem && root.contentItem.hasOwnProperty("contentY") ? scrollView.flickableItem.contentHeight + headerHeight : (root.contentItem.height + topPadding + bottomPadding) | ||
apol: Does this mean that setting the topPadding and bottomPadding to 0 would make this empty space… | |||||
271 | Item { | 271 | Item { | ||
272 | id: contentItemParent | 272 | id: contentItemParent | ||
273 | anchors { | 273 | anchors { | ||
274 | fill: parent | 274 | fill: parent | ||
275 | leftMargin: leftPadding | 275 | leftMargin: leftPadding | ||
276 | topMargin: topPadding | 276 | topMargin: topPadding | ||
277 | rightMargin: rightPadding | 277 | rightMargin: rightPadding | ||
278 | bottomMargin: bottomPadding | 278 | bottomMargin: bottomPadding | ||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |
Does this mean that setting the topPadding and bottomPadding to 0 would make this empty space go away?