diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2013-11-20 15:21:38 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-20 16:36:37 +0100 |
commit | d214b67eb0d93c415b76fba607ae67cbf36aa17b (patch) | |
tree | 0ec99ac1630982db5c5c9c50f3887e09ca75f610 /src | |
parent | 4e63aafcb170cfba806696ac92ad1fe82f8859ae (diff) | |
download | qtquickcontrols-d214b67eb0d93c415b76fba607ae67cbf36aa17b.tar.gz qtquickcontrols-d214b67eb0d93c415b76fba607ae67cbf36aa17b.tar.bz2 qtquickcontrols-d214b67eb0d93c415b76fba607ae67cbf36aa17b.zip |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/controls/TableView.qml | 2 |
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 |