PageStack doesn't display default of ConditionalLayout

Bug #1204834 reported by Andreas E.
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Fix Released
Critical
Zsombor Egri
ubuntu-ui-toolkit (Ubuntu)
Fix Released
Undecided
Unassigned
Vivid
New
Undecided
Unassigned

Bug Description

The ConditionalLayout object allows to define a default layout (children of Layout object) and a list of special layouts with conditions. When the layouts list contains one or more layouts, the default layout will not render (when it is supposed to render).

It does render either when adding it to the layouts list, or when the layouts list is empty or when using the page without PageStack.

Related branches

Revision history for this message
Andreas E. (andreas-e) wrote :
Revision history for this message
Tim Peeters (tpeeters) wrote :

When the PageStack is not in a ConditionalLayout, but in Layouts (as the default layout), it also doesn't work. Initially the PageStack may show, but when switching layouts and going back, things get messed up and the PageStack is gone (or its Pages show, but no back button in toolbar).

Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
assignee: nobody → Zsombor Egri (zsombi)
importance: Undecided → Medium
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
status: New → Confirmed
Revision history for this message
Zsombor Egri (zsombi) wrote :

In the attached example the Page is set hidden (visible: false) which makes default layout to be hidden too. Remove that line and you will have it working.

Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
status: Confirmed → Invalid
Revision history for this message
Niklas Wenzel (nikwen) wrote :

Reopened. I'm having that issue as well and this is what the docs say:

"Pages that are defined inside the PageStack must initially set their visibility to false to avoid the pages occluding the PageStack before they are pushed. When pushing a Page, its visibility is automatically updated." (http://developer.ubuntu.com/api/qml/sdk-14.04/Ubuntu.Components.PageStack/)

So the reason why this bug report was marked as invalid does not apply here.

Changed in ubuntu-ui-toolkit:
assignee: Zsombor Egri (zsombi) → nobody
status: Invalid → Confirmed
Revision history for this message
Niklas Wenzel (nikwen) wrote :

This is probably related to this bug: https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1300668

Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
assignee: nobody → Zsombor Egri (zsombi)
milestone: none → june-2014
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
importance: Medium → Critical
status: Confirmed → In Progress
tags: added: convergence layouts
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/staging at revision None, scheduled for release in ubuntu-ui-toolkit, milestone Unknown

Changed in ubuntu-ui-toolkit:
status: In Progress → Fix Committed
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
status: Fix Committed → Fix Released
Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → 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.