We respect the requested size if the app provided one, otherwise we default to a size - and on next start we restore the same size this app had when closed.
> 761: property int itemCenter: item ? root.mapFromItem(quickList.item).y + (item.height /2) + quickList.item.offset : units.gu(1)
dinamic, can you please try and print these values, write something like:
property int itemCenter: { console.debug(item); console.debug(quickList.item); console.debug(root.mapFromItem(quickList.item).y); console.debug(quickList.item.offset); console.debug(units.gu(1)); return item ? root.mapFromItem(quickList.item).y + (item.height /2) + quickList.item.offset : units.gu(1); }
This will print the values every time this property is evaluated, should help in identifying what the problem is.
We respect the requested size if the app provided one, otherwise we default to a size - and on next start we restore the same size this app had when closed.
> 761: property int itemCenter: item ? root.mapFromIte m(quickList. item).y + (item.height /2) + quickList. item.offset : units.gu(1)
dinamic, can you please try and print these values, write something like:
property int itemCenter: { debug(item) ; debug(quickList .item); debug(root. mapFromItem( quickList. item).y) ; debug(quickList .item.offset) ; debug(units. gu(1)); m(quickList. item).y + (item.height /2) + quickList. item.offset : units.gu(1);
console.
console.
console.
console.
console.
return item ? root.mapFromIte
}
This will print the values every time this property is evaluated, should help in identifying what the problem is.