1 Reply Latest reply on Apr 11, 2008 2:31 PM by slaingod

    redraw graphic not scale it

    TessandraFae Level 1
      Hi everyone,

      So I'm building an app where the use can add vector created shapes to the canvas and be able to resize, drag, and change colors. Problem is, when the shape is resized (changing height and width), the shape's stroke thickens or thins, like it's just being scaled. What I need it to do is redraw itself on resize to keep the stroke consistent.

      So let's say I have a container with an event listener. It also has a button on the lower right that causes the container to resize with it as the button is dragged. Now the shape is inside that container. What would be a good way for shape to grab the container's height and width, and redraw itself to that size? And do that as an event?

      I appreciate your ideas!