please could you provide a url?
which browser or user agent are you using
this sounds like it may be related to a known bug.
regards
Jonathan Chetwynd
Accessibility Consultant on Media Literacy and the Internet
On 14 Dec 2007, at 02:51, juninbox wrote:
Folks,
I want to resize the canvas through setting the width and height of
the embed svg object in html, but the elements on the canvas all
disappeared after resize.
following is the description:
Step 1. embed svg canvas in html file likes this:
<html>
...
<body>
...
<embed id="svgdoc" width="1000px" height="1000px" src="canvas.svg"
type="image/svg+xml"/>
</body>
</html>
Step 2. in the javascript file, create some dynamic elements, such as
lines, rectangles in the canvas, and it was created succussful.
Step 3. in the javascript file, get the canvas in the javascript file
and set its width and hight,
svgdoc=document.getElementById("svgdoc");
svgdoc.style.width="2000px";
after step 3, all elements created on step 2 disappeared. does anybody
know the way to resize the canvas and also reverse the elements
already created before on the canvas? many thanks in advanced!
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/