Zooming in/out logic with RapaelJS

alfonsopink

New Member
So when you set a flash object to 100% width/height what ends up happening is the flash movie zooms in as you stretch it out and make the window bigger. Well maybe that isn't what is happening, but it looks that way.I am trying to achieve something similar with RaphaelJS. Here: http://jsfiddle.net/soparrissays/2rqtL/3/ , I have a simple example where the circle shrinks and expands as you make the result window bigger; however, it does it backwards. The circle should become larger as the window increases in size rather than get smaller. Can anyone spot what is happening here?I am attempting to use setViewBox to achieve this.
 
Top