← Back to team overview

touch-packages team mailing list archive

[Bug 1320190] Re: Layouts does not display elements that were loaded after the the creation of the layouts

 

** Changed in: ubuntu-ui-toolkit (Ubuntu)
   Importance: Undecided => Wishlist

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

** Changed in: ubuntu-ui-toolkit (Ubuntu)
     Assignee: (unassigned) => Zsombor Egri (zsombi)

-- 
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/1320190

Title:
  Layouts does not display elements that were loaded after the the
  creation of the layouts

Status in Ubuntu UI Toolkit:
  Confirmed
Status in “ubuntu-ui-toolkit” package in Ubuntu:
  Confirmed

Bug description:
  Imagine a UI element contained inside a Component{} that is laid out
  in the default layout and the conditional layout. If this UI element
  is created only after the layouts were created, then this element is
  not seen.

  For more information please see the irc conversation below.

  1:10 PM <zsombi_> nik90_: the Layouts take int account those items from the default layout, which were created at the time the Layouts got completed. Other components which are marked to be layd out but loaded after that point will be omitted.
  1:10 PM <zsombi_> nik90_: so in case we need such a functionality, we have to add that
  1:11 PM <zsombi_> nik90_: yeah, I thought so... so I can link the bug to the same MR then
  1:11 PM <nik90_> zsombi_> nik90_: the Layouts take int oaccount those items from the default layout, which were created at the time the Layouts got completed. Other components which are marked to be layd out but loaded after that point will be omitted
  1:11 PM <nik90_> zsombi_: hmm would this be a common use case?
  1:11 PM <nik90_> zsombi_: I am trying to think of scenarios where this might be hit by app devs
  1:12 PM <zsombi_> nik90_: I can imagine that there can be such a case: use Loader to load some components later depending on some input
  1:13 PM <zsombi_> nik90_: if those components loaded by the Loader are in the default layout, and those contain items marked to be layd out, I'd say it woudl be expected to work. ATM it won't, because the laid out items are only collected on Layouts default completion
  1:14 PM <nik90_> zsombi_: ok
  1:14 PM <nik90_> zsombi_: I will create a bug report about this just to ensure we dont forget it. 

  
  Do note that we do not have a sample code at the moment.

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