From fa280e9ef50ca72334eead242c233b24115554ab Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Sun, 24 May 2015 18:44:33 +0200 Subject: [PATCH] PListView: Fix layout issues on resize --- touch/PListView.qml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/touch/PListView.qml b/touch/PListView.qml index 7f077d6..e607207 100644 --- a/touch/PListView.qml +++ b/touch/PListView.qml @@ -30,6 +30,19 @@ ListView { boundsBehavior: Flickable.StopAtBounds + function relayout() { + var _contentY = contentY; + var _model = model; + model = null; + model = _model; + contentY = _contentY; + } + + Connections { + target: pgst + onScalefChanged: relayout(); + } + header: SlidePageHeader { id: header title: pListView.title