Using PullToRefresh in a secondary page breaks content's position

Bug #1404884 reported by Alberto Mardegan on 2014-12-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Undecided
Tim Peeters

Bug Description

See the attached example: the first page works fine. Once the pull-to-refresh action is triggered, the second page is loaded and its contents' offset is wrong (it behaves as if the header was missing).

If this bug is hard to fix, please advise for a workaround -- I couldn't find any.

Alberto Mardegan (mardy) wrote :
Zsombor Egri (zsombi) wrote :

As both ListViews use the same model, you must disable the one from page0, otherwise they both will control the header.

And probably you could use UbuntuListView, which has a built-in PullToRefresh control.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Incomplete
Alberto Mardegan (mardy) wrote :

Ah, thanks, that worked to some extent. However, now the contents are scrolled leaving some whitespace above them (which goes away as soon as I click on the LitsView).
I'm attaching the modified code which shows the issue.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: Incomplete → New
Zsombor Egri (zsombi) wrote :

That behavior can be seen in many other cases when you simply use a ListView without any PullToRefresh. That is somehow related to the Header functionality, so I forward this to Tim.

Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Tim Peeters (tpeeters)
status: New → Triaged
Tim Peeters (tpeeters) wrote :

That sounds like a separate issue. Please report a new bug for that.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments