PListView: Fix layout issues on resize
This commit is contained in:
parent
4a0b3f1b12
commit
fa280e9ef5
1 changed files with 13 additions and 0 deletions
|
@ -30,6 +30,19 @@ ListView {
|
||||||
|
|
||||||
boundsBehavior: Flickable.StopAtBounds
|
boundsBehavior: Flickable.StopAtBounds
|
||||||
|
|
||||||
|
function relayout() {
|
||||||
|
var _contentY = contentY;
|
||||||
|
var _model = model;
|
||||||
|
model = null;
|
||||||
|
model = _model;
|
||||||
|
contentY = _contentY;
|
||||||
|
}
|
||||||
|
|
||||||
|
Connections {
|
||||||
|
target: pgst
|
||||||
|
onScalefChanged: relayout();
|
||||||
|
}
|
||||||
|
|
||||||
header: SlidePageHeader {
|
header: SlidePageHeader {
|
||||||
id: header
|
id: header
|
||||||
title: pListView.title
|
title: pListView.title
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue