← Back to team overview

touch-packages team mailing list archive

[Bug 1492343] Re: Pages hidden in an AdpativePageLayout stack have their width changed to zero

 

The root cause of the problem you see is because the Page itself anchor
fills to its parent. This was connected badly, and because of that we
have this problem.

A fix would be to have  property change for each Page added into the
hidden item to unset the anchor.fill of the page and restore it when the
parent is changed back. However, this would cause Page width changes as
well, which is also bad. Another solution is not to reparent but hide
the entire Page from the cold,n, which then would break the eventual
bindings applied on the opacity/visible properties...

We need to study a solution that would prevent Page size changes while
reside in the hidden Item.

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

Title:
  Pages hidden in an AdpativePageLayout stack have their width changed
  to zero

Status in ubuntu-ui-toolkit package in Ubuntu:
  Confirmed

Bug description:
  As shown in this example [0], if you select the "Albums for artist"
  button to push a page onto the stack, you can see in the console that
  the width of the old component is changed to zero, which causes it
  then to reflow as the width is increased when it is brought back into
  view. Instead, the width should not be changed when the page is
  hidden.

  0 - http://pastebin.ubuntu.com/12274053/

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


References