summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2013-11-20 15:21:38 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-20 16:36:37 +0100
commitd214b67eb0d93c415b76fba607ae67cbf36aa17b (patch)
tree0ec99ac1630982db5c5c9c50f3887e09ca75f610
parent4e63aafcb170cfba806696ac92ad1fe82f8859ae (diff)
downloadqtquickcontrols-d214b67eb0d93c415b76fba607ae67cbf36aa17b.tar.gz
Fix TableView scrolling problem
TableView was specifying its content width based on item rows' width. Item rows get dynamically loaded and destroyed while scrolling, and it sometimes applied a width of a half-(de)constructed item row. That made the horizontal scrollbar jump to the beginning. This patch makes TableView use header row's (static) width for specifying the content width. Task-number: QTBUG-34344 Change-Id: I797f0f5d294fbb8c95b2836f9aec0dc14c32bc6b Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@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 586f1211..736ac6e3 100644
--- a/src/controls/TableView.qml
+++ b/src/controls/TableView.qml
@@ -830,7 +830,6 @@ ScrollView {
}
}
}
- onWidthChanged: listView.contentWidth = width
}
}
@@ -991,6 +990,7 @@ ScrollView {
}
}
}
+ onWidthChanged: listView.contentWidth = width
}
Loader {
id: loader