Layout incorrectly sizes the children in the default layout when using Components{}

Bug #1298886 reported by Nekhelesh Ramananthan
6
This bug affects 1 person
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

Ubuntu Layouts is causing the elements in the default layout to be incorrectly sized (or perhaps hidden) when the Tabs{} component is placed inside a Component{}. My app's basic structure is as follows,

MainView {
    PageStack {
           component.onCompleted: {
                    if(true)
                         push(tabsComponent)
                    else
                         push(firstPage)
           }
           Component {
                   id: tabsComponent
                  Tabs {
                        Tab {
                              page: firstPage{}
                        }
                        Tab {
                              page: secondPage{}
                        }
                   }
           }
    }
}

So I noticed that when the Tabs{} is placed inside a component (tabsComponent)and the default app size matches a conditional layout, when switching to the default layout, elements in the default layout are not shown. If however the default app size corresponds to the default layout then all is fine.

I have attached sample code which illustrates the bug further.

Related branches

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
assignee: nobody → Zsombor Egri (zsombi)
status: New → Confirmed
tags: added: convergence-blocker
tags: added: convergence
removed: convergence-blocker
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
milestone: none → april-2014
importance: Undecided → Critical
Changed in ubuntu-ui-toolkit:
status: Confirmed → In Progress
Tim Peeters (tpeeters)
tags: added: layouts
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
milestone: april-2014 → june-2014
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.