calling pageStack.pop() in a loop pops too much

Bug #1461729 reported by Michael Zanetti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Fix Released
High
Tim Peeters
Vivid
New
Undecided
Unassigned

Bug Description

In Ubuntu.Components 1.1 this was working fine to pop everything from a PageStack except the first page:

            while (pageStack.depth > 1) {
              pageStack.pop()
            }

In Ubuntu.Components 1.2 this does no longer work, because it pops the first page too. My suspicion is that it is related to the animation in the header which updates the depth asynchronously.

See the attached file as a standalone example to reproduce. While it works when importing 1.1, it breaks when importing 1.2

Related branches

Revision history for this message
Michael Zanetti (mzanetti) wrote :
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Confirmed
assignee: nobody → Tim Peeters (tpeeters)
importance: Undecided → High
Revision history for this message
Tim Peeters (tpeeters) wrote :

Pop() is called repeatedly before the previous page is actually popped, because of the animation.

I think we need to disable all animations, or add a pop(bool immediate) function, or completely make the visuals and pagestack asynchronous, including copying of the Page in memory to avoid showing a Page (that is animating out) when it was already popped from the stack and removed from memory.

Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-ui-toolkit - 1.3.1549+15.10.20150710.1-0ubuntu1

---------------
ubuntu-ui-toolkit (1.3.1549+15.10.20150710.1-0ubuntu1) wily; urgency=medium

  [ Timo Jyrinki ]
  * arch specific deps (LP: #1473035) (LP: #1473035)

 -- CI Train Bot <email address hidden> Fri, 10 Jul 2015 06:31:57 +0000

Changed in ubuntu-ui-toolkit (Ubuntu):
status: Fix Committed → 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.