summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2014-05-15 13:49:10 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-15 16:52:31 +0200
commit42d64cd1a466afea0db7d9608a489d67e9237831 (patch)
treeea188158c272f4013407700273b460af876db791
parent67f6c0bc3052a5c14d4b556c25e376fe97c7973e (diff)
downloadqtquickcontrols-42d64cd1a466afea0db7d9608a489d67e9237831.tar.gz
TableView: fix the position of "filled" rows
On desktop the content cannot be scrolled when there are empty filled rows, but on touch the content can be still flicked so the empty filled rows must move together with the content. Change-Id: I82e27d26a332d54c051e5d7bf9e1e0ab8e205f76 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
-rw-r--r--src/controls/TableView.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/TableView.qml b/src/controls/TableView.qml
index 75e1b4e1..3d0092cc 100644
--- a/src/controls/TableView.qml
+++ b/src/controls/TableView.qml
@@ -708,7 +708,7 @@ ScrollView {
property int rowHeight: rowSizeItem.implicitHeight
property int paddedRowCount: height/rowHeight
- y: listView.contentHeight
+ y: listView.contentHeight - listView.contentY + listView.originY
width: parent.width
visible: alternatingRowColors
height: viewport.height - listView.contentHeight