Flex: MultiScaleImage component not displaying when inside containers
Take the MappingFlex example, place the MultiScaleImage component inside a container class, when tested... the loading progress bar appears to be working as usual. Meaning the tiles are being loaded but no map is being displayed.
Using SDK 3.3, OpenZoom code being used downloaded on 4/26
Using SDK 3.3, OpenZoom code being used downloaded on 4/26
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
The company has acknowledged this problem.
The best solution from the company
-
Hyder,
You'll have to set a size for the MultiScaleImage component, e.g. width = 100% (relative) or width = 100 (explicit). Then it should work. I've added a default size for the component so it should never collapse to zero dimensions.
Let me know whether this works for you.
Cheers,
Daniel
The company says
this solves the problem
-
Inappropriate?Hyder,
Thanks for the feedback. Could you please post the code for a specific example with the exact container you are using? Thanks.
–Daniel
-
Inappropriate?
<mx:box>
<openzoom:multiscaleimage>
<openzoom:controllers>
<controllers:mousecontroller>
</controllers:mousecontroller><controllers:keyboardcontroller>
</controllers:keyboardcontroller></openzoom:controllers>
<openzoom:constraint>
<constraints:compositeconstraint>
<constraints:mappingconstraint>
</constraints:mappingconstraint><constraints:scaleconstraint>
</constraints:scaleconstraint></constraints:compositeconstraint>
</openzoom:constraint>
<openzoom:transformer>
<transformers:tweenertransformer>
</transformers:tweenertransformer></openzoom:transformer>
</openzoom:multiscaleimage>
</mx:box>
-
Inappropriate?Hyder,
You'll have to set a size for the MultiScaleImage component, e.g. width = 100% (relative) or width = 100 (explicit). Then it should work. I've added a default size for the component so it should never collapse to zero dimensions.
Let me know whether this works for you.
Cheers,
Daniel
The company says
this solves the problem
-
Inappropriate?You were right about that one.
But now there's another issue when I use states in my application. Only a single tile seems to be loading.
I've attached an example with source here:
One Tile Issue
-
Inappropriate?Hyder,
You're right, something goes wrong once we introduce states.
Thanks for finding this (and for hacking around on the components)!
–Daniel
P.S. Nevertheless, make sure that you use explicit dimensions within a canvas container, not percentages.
-
Inappropriate?Here's a similar bug, they've got a workaround but I don't fully grasp it, hopefully, you'll be able to better understand it.
http://code.google.com/p/flexlib/issu... -
Inappropriate?Hey Daniel,
Were you able to fix the issue where the MultiScaleImage didn't work when states were introduced?
Thanks,
Hyder
-
Inappropriate?Hyder,
I saw the resource you referenced. I must admit though that this issue is a low priority for me at the moment. If you want to find a workaround please let me know.
–Daniel
-
Inappropriate?I've added this as a bug report on the OpenZoom Google Code site:
http://code.google.com/p/open-zoom/is...
If anyone wants to give this a shot, feel free!
–Daniel
Loading Profile...




EMPLOYEE