Incorrect initial pos after resizing view with margins.
authorMartin Jones <martin.jones@nokia.com>
Thu, 2 Feb 2012 01:46:55 +0000 (11:46 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 2 Feb 2012 08:09:37 +0000 (09:09 +0100)
commit897ab4f34156b928ff5b59965cfb8d708db232d7
treefaa8e281131877f03cf25caad9c5b87ece5fe6c7
parentf80dcdab84e563326ad19731f6ad8fb4fcb73f2a
Incorrect initial pos after resizing view with margins.

The currentItem tracking didn't position the view to show the
margins.  This affects resizing the view and also changing
currentIndex.

Task-number: QTBUG-24028
Change-Id: I47d4c771c0d712c93abadfb6b2deb5194241fb6b
Reviewed-by: Bea Lam <bea.lam@nokia.com>
src/quick/items/qquickitemview.cpp
src/quick/items/qquickitemview_p_p.h
tests/auto/qtquick2/qquicklistview/data/Page.qml [new file with mode: 0644]
tests/auto/qtquick2/qquicklistview/data/margins2.qml [new file with mode: 0644]
tests/auto/qtquick2/qquicklistview/tst_qquicklistview.cpp