[AdaptivePageLayout] Add function to clear higher columns of pages

Bug #1534673 reported by Michael Hall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

Please add a function that will allow the developer to remove pages from any higher-numbered columns than itself. This is similar to removePages(targetPage) except that it does not remove the targetPage or any pages in it's column.

Suggestion:

removeChildPages(targetPage)

Use Case:

in uReadIt I have a SubredditGalleryPage, which allows the user to swipe back and forth through images from a subreddit like /r/funny. This will occupy the 2nd column in my layout. Each image can have a CommentsPage for it's comments opened in the 3rd column. When a CommentsPage is opened for an image in SubredditGalleryPage, and the user changes to another image, I would like to close the CommentsPage and any child of it (such as a PostMessagePage)

Revision history for this message
Zsombor Egri (zsombi) wrote :

The removePages() removes any high-numbered column page and itself. Do I get it right that you would like one which does the same except keeps the page given as parameter?

Revision history for this message
Zsombor Egri (zsombi) wrote :

More like roll back to page?

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