OK, here's a qml file that you can run with qmlscene on your desktop.
Put it in the same folder as horizontal.jpg and vertical.jpg.

When switching between a portrait and landscape source and sourceSize,
you can see that CrossFadeImage goes transparent a bit (showing the red
underneath in this example).

You can also see that it may end up showing the wrong source!  I hadn't
noticed that in my earlier testing because I had source and sourceSize
in a different order in the code.

If sourceSize is listed first (and thus changes first when isLandscape
does), the right source always gets displayed (though you still see red
bleed through).  But if sourceSize is listed second (as it is in
crossfade.qml), you get red bleed through AND the wrong source may be
displayed after a source change.

** Attachment added: "crossfade.qml"
   
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1599203/+attachment/4717520/+files/crossfade.qml

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

Title:
  CrossFadeImage: modifying sourceSize causes transparent image

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

Bug description:
  1) Have a CrossFadeImage loaded
  2) Set a new source
  3) Set a new sourceSize for the new source

  You'll see the CrossFadeImage go black while it reloads the image for
  the new sourceSize.  This rather breaks the point of CrossFadeImage.

  Each source may have its own unique sourceSize.  They tend to go hand-
  in-hand.  But modifying sourceSize currently affects both image1 and
  image2 internally.

  Maybe either (A) have a way to set source and sourceSize at the same
  time or (B) have sourceSize changes only affect the next-loaded
  source?

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to