well, yes I'm using IE9.0 but the problem solved in an odd way. I think
this happened after I added JQuery to my project. now this block starts
in IE:
if (window.addEventListener) {//Not IE
document.getElementById(SVG_Name).viewBox.baseVal.x =
document.getElementById(SVG_Name).viewBox.baseVal.x * (1 -
ZoomChangePercent * ZoomCenterX);
document.getElementById(SVG_Name).viewBox.baseVal.y =
document.getElementById(SVG_Name).viewBox.baseVal.y * (1 -
ZoomChangePercent * ZoomCenterY);
document.getElementById(SVG_Name).viewBox.baseVal.width =
document.getElementById(SVG_Name).viewBox.baseVal.width * (1 -
ZoomChangePercent);
document.getElementById(SVG_Name).viewBox.baseVal.height =
document.getElementById(SVG_Name).viewBox.baseVal.height * (1 -
ZoomChangePercent); }As far as I know addEventListener is for non IE
browsers.
Anyhow this problem is solved but instead after changing viewbox (zoom
in), the image goes outside of boundries of SVG element. My SVG Element
is included in a div element:
<div id="Graphics2DCanvas1_Div" onmousewheel="WheelEvent(event)"
onmousedown="MouseDown(event)" onmouseup="MouseUp(event)" style="border:
1px Solid #666666; width:300px; height: 300px;" ><svg
id="Graphics2DCanvas1_SVG" width="300px" height="300px" viewbox="-1000
-1000 3000 3000"><g id="Graphics2DCanvas1_SVG_TopMostGroup"
transform="scale(1,-1)" ><line x1="50" y1="50" x2="100"" y2="100"
id="Graphics2DCanvas1-1" SVG_ID="Graphics2DCanvas1"
Parent_ID="Graphics2DCanvas1" class="" style=""
externalresourcesrequired="False" visibility="visible" stroke= "Red"
stroke-dashoffset="" stroke-linecap="inherit" stroke-linejoin="inherit"
stroke-width="1px"/><line x1="0" y1="0" x2="0"" y2="100"
id="Graphics2DCanvas1-2" SVG_ID="Graphics2DCanvas1"
Parent_ID="Graphics2DCanvas1" class="" style=""
externalresourcesrequired="False" visibility="visible" stroke= "Red"
stroke-dashoffset="" stroke-linecap="inherit" stroke-linejoin="inherit"
stroke-width="1px"/><line x1="0" y1="0" x2="100"" y2="0"
id="Graphics2DCanvas1-3" SVG_ID="Graphics2DCanvas1"
Parent_ID="Graphics2DCanvas1" class="" style=""
externalresourcesrequired="False" visibility="visible" stroke= "Red"
stroke-dashoffset="" stroke-linecap="inherit" stroke-linejoin="inherit"
stroke-width="1px"/><line x1="0" y1="0" x2="0"" y2="-100"
id="Graphics2DCanvas1-4" SVG_ID="Graphics2DCanvas1"
Parent_ID="Graphics2DCanvas1" class="" style=""
externalresourcesrequired="False" visibility="visible" stroke= "Red"
stroke-dashoffset="" stroke-linecap="inherit" stroke-linejoin="inherit"
stroke-width="1px"/></g></svg></div>
may you have any answer for this?
[Non-text portions of this message have been removed]
------------------------------------
-----
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:
[email protected]
[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/