I have the following problem:

My application is storing the position and the size of some objects on
opensocial as this JSON:
{"drag":{"left":"250px","top":"22px"},{"width":"420px","height":"52px"}}

Currently, these positions and sizes can be changed in canvas view only.

Focusing just on the positioning question, when users see my application on
their profile, I have to convert the position of the objects, because the
canvas is obviously bigger than profile view. So, there is my problem. I was
converting these coordinates using a proportional ratio 0.62 between the
width of canvas (835px) and profile (525px).

ratio = 525 / 835

How can I do this using os:templates?

If I can't parse and/or convert this coordinates, my application can't
display objects with the owner's customized position.


regards,
Jota

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to