CrossFadeImage: modifying sourceSize causes transparent image

Bug #1599203 reported by Michael Terry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
New
Undecided
Unassigned

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?

Revision history for this message
Cris Dywan (kalikiana) wrote :

Can you provide an example QML snippet demonstrating the problem?

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Incomplete
Revision history for this message
Michael Terry (mterry) wrote :

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.

Revision history for this message
Michael Terry (mterry) wrote :
Revision history for this message
Michael Terry (mterry) wrote :
Changed in ubuntu-ui-toolkit (Ubuntu):
status: Incomplete → New
Michael Terry (mterry)
summary: - CrossFadeImage: modifying sourceSize causes black image
+ CrossFadeImage: modifying sourceSize causes transparent image
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.