[PageStack] Calling positionViewAtIndex cause the page header misbehave

Bug #1223050 reported by Renato Araujo Oliveira Filho
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Music App
Fix Released
Low
Unassigned
address-book-app (Ubuntu)
Confirmed
High
Unassigned
ubuntu-ui-toolkit (Ubuntu)
Fix Released
High
Tim Peeters

Bug Description

Using a ListView inside of a PageStack causes the ListView header misbehave after calling positionViewAtIndex:

How to reproduce (using the example attached):

1- run: qmlscene main.qml
2- click in the button "click me"
3- scroll the list
4- click in the button "click me" again

Expected behavior:
The section header should be fully visible at the top

Current behavior:
The page header overlaps the listview and the section header

Tags: header
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :
Bill Filler (bfiller)
Changed in address-book-app:
importance: Undecided → High
Changed in ubuntu-ui-toolkit:
importance: Undecided → High
Changed in address-book-app:
status: New → Confirmed
Bill Filler (bfiller)
Changed in address-book-app (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
assignee: nobody → Tim Peeters (tpeeters)
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in address-book-app (Ubuntu Trusty):
status: New → Confirmed
Changed in ubuntu-ui-toolkit (Ubuntu Trusty):
status: New → Confirmed
Tim Peeters (tpeeters)
tags: added: header
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
importance: High → Critical
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Adding music app as also affects because this happens on the now playing when raising the toolbar to jump to the current track. As seen in the screenshot attached.

Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
status: Confirmed → In Progress
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
status: In Progress → Confirmed
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
importance: Critical → High
David Planella (dpm)
Changed in music-app:
status: New → Triaged
importance: Undecided → Low
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-ui-toolkit (Ubuntu)
Zoltan Balogh (bzoltan)
no longer affects: address-book-app (Ubuntu Trusty)
no longer affects: ubuntu-ui-toolkit (Ubuntu Trusty)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Tim Peeters (tpeeters)
importance: Undecided → High
status: New → Confirmed
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-ui-toolkit
no longer affects: address-book-app
Revision history for this message
Tim Peeters (tpeeters) wrote :

With the new PageHeader, you can anchor another item that takes the place of the section header at the bottom of the header. See attached newfruits.zip for a modification of the example code above that solves the problem.

Another solution would be to adapt the ListView for the section header to take the ListView.topMargin into account. But that would need to be reported as a separate Qt bug.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Since the music-app has moved to using the new header, I don't think I'm able to reproduce this any more. Therefore I'm marking this as fixed within the music-app.

Changed in music-app:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.