Comment 7 for bug 1572525

Revision history for this message
Tim Peeters (tpeeters) wrote : Re: [regression] Double header height is set as flickable topMargin

As Andrea said, this is the expected behavior.

The PageHeader will update the topMargin of the flickable that you set in order to ensure enough space for the header when it is visible. In addition to that, you set another topMargin inside the Flickable. We had to make a choice to either let the app developer always set the topMargin in the apps, or do it automatically when you set PageHeader.flickable. We chose the latter. There were some bugs related to that which were fixed in the MR you linked which probably caused the issues for you, but changing the behavior back will re-introduce those bugs.

I'm not sure what the use case of this construction is, but perhaps this would work as a solution for you: http://paste.ubuntu.com/15948932/
There I add the PageHeader inside the ListView delegate so that each of the Items in the ListView has its own header instead of sharing one header that shows/hides depending on what is the currently selected item in the ListView.