diff options
| author | Jens Bache-Wiig <jens.bache-wiig@digia.com> | 2013-05-03 09:34:34 +0200 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-04 20:09:34 +0200 |
| commit | 666762d63f6a5844066a4eb81a759e93479a1d1d (patch) | |
| tree | 3975be64ff4c09d8c5201f57dc8d619f6f1fb3ef /src/controls/ScrollView.qml | |
| parent | 2e3dc46f73ce9514dfea4266c155cb6ac770becd (diff) | |
Allow TableView to scroll to bottom
Change-Id: If09c39341833e6162921c280bcc7583cca2fb15f
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Diffstat (limited to 'src/controls/ScrollView.qml')
| -rw-r--r-- | src/controls/ScrollView.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/controls/ScrollView.qml b/src/controls/ScrollView.qml index 8dc1bd1b8..79ceb5848 100644 --- a/src/controls/ScrollView.qml +++ b/src/controls/ScrollView.qml @@ -135,6 +135,8 @@ FocusScope { /*! \internal */ property int __scrollBarTopMargin: 0 /*! \internal */ + property int __viewTopMargin: 0 + /*! \internal */ property alias __horizontalScrollBar: scroller.horizontalScrollBar /*! \internal */ property alias __verticalScrollBar: scroller.verticalScrollBar @@ -231,7 +233,7 @@ FocusScope { property bool verticalRecursionGuard: false horizontalMaximumValue: flickableItem ? flickableItem.contentWidth - viewport.width : 0 - verticalMaximumValue: flickableItem ? flickableItem.contentHeight - viewport.height : 0 + verticalMaximumValue: flickableItem ? flickableItem.contentHeight - viewport.height + __viewTopMargin : 0 Connections { target: flickableItem |
