Hi Bader,

bader houmad wrote:

>bader houmad wrote:

 >>In my application, i change the size of my canvas with the method
 >>setMySize(), but when i draw a shape in the canvas it is reset to
 >>its initial size. how can i avoid this problem?
 >
 >    What do you mean by draw a shape?  add a new shape to the
 >document?  Show a new document?

*I mean I add a new shape to the document.*

Are you doing something like adding the shape to the document then resetting the document on the Canvas (with setSVGDocument)?

> Also how do you set the size of the canvas?
*I set the initial size of the canvas with the metohd setMySize(), and I change it with the same method. And when i add a new shape to the document of this canvas, the canvas is reset to its initial size!*

The only time the canvas set's it's size is when a document is installed in the canvas.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to