← Back to team overview

touch-packages team mailing list archive

[Bug 1461729] Re: calling pageStack.pop() in a loop pops too much

 

** Changed in: ubuntu-ui-toolkit (Ubuntu)
       Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1461729

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

Status in ubuntu-ui-toolkit package in Ubuntu:
  Fix Committed

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1461729/+subscriptions


References