[Dojo-interest] issues with scaleAt...

Nicola Rizzo nicola.rizzo+dojo at gmail.com
Tue Dec 5 07:51:56 MST 2006


Hi Christopher,
in IE 6 I use createRect to resize a rectangle without problems; in
Firefox and Opera setShape works fine.
hth,
          Nicola

On 12/5/06, christopher taylor <christopher.paul.taylor at gmail.com> wrote:
> hi,
>
> right now i'm working on an SVG application and i've noticed some
> strange behavior in scaleAt. currently, scaleAt conducts a scale
> operation and "_sandwiches" that result between a point and it's
> reflection.
>
> i'm currently playing with 'scalable rectangles'. the user clicks on
> the canvas to "fix" the upper left corner of the rectangle to a point
> and as they drag/move the mouse, the bottom right edge is supposed to
> to be expandable, until they click again where the rectangle fixes the
> bottom right corner to another point and the rectangle is fixed.
>
> currently the behavior of the application is really peculiar. you
> click and as your drag, the entire rectangle spirals around the point,
> as it grows, until it disappears from view.
>
> I tired the scale operation earlier but, when you scale the object
> grows and it's x,y positions are altered. hence my change over to
> scaleAt.
>
> any explanation or help is greatly appreciated! thanks everyone!
>
> ct
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>


More information about the Dojo-interest mailing list