on xenial help sign in
set the heightToClip property from the beginning
commit183438adae5226dc8e8ae94c290c9e87be5e4d62 authorAlbert Astals <albert.astals@canonical.com> dateWed 26 Jun 2013, 15:53 (13 years ago) parent0a59ac8
1 file changed+1
plugins/ListViewWithPageHeader/listviewwithpageheader.cpp+1
plugins/ListViewWithPageHeader/listviewwithpageheader.cpp+1
@@ -692,6 +692,7 @@ void ListViewWithPageHeader::itemCreated(int modelIndex, QQuickItem *item)
692692 item->setParentItem(m_clipItem);
693693 QQmlContext *context = QQmlEngine::contextForObject(item)->parentContext();
694694 context->setContextProperty(QLatin1String("ListViewWithPageHeader"), this);
695+ context->setContextProperty(QLatin1String("heightToClip"), QVariant::fromValue<int>(0));
695696 if (modelIndex == m_asyncRequestedIndex) {
696697 createItem(modelIndex, false);
697698 refill();