Fixed Issue 676: Image library elements not responsive with IE9 beta

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1726 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2010-09-17 14:29:22 +00:00
parent ad1933e297
commit 01a5855dbd
1 changed files with 8 additions and 8 deletions

View File

@ -1256,6 +1256,7 @@ var SelectorManager;
// now if the shape is rotated, un-rotate it
var cx = nbax + nbaw/2,
cy = nbay + nbah/2;
var angle = getRotationAngle(selected);
if (angle) {
@ -2615,14 +2616,14 @@ var getBBox = this.getBBox = function(elem) {
selected.textContent = '';
} else if(elem.nodeName == 'path' && isWebkit) {
ret = getPathBBox(selected);
} else if(elem.nodeName == 'use' && !isWebkit) {
} else if(elem.nodeName == 'use' && !isWebkit || elem.nodeName == 'foreignObject') {
ret = selected.getBBox();
ret.x += parseFloat(selected.getAttribute('x')||0);
ret.y += parseFloat(selected.getAttribute('y')||0);
} else if(elem.nodeName == 'foreignObject') {
ret = selected.getBBox();
ret.x += parseFloat(selected.getAttribute('x')||0);
ret.y += parseFloat(selected.getAttribute('y')||0);
var bb = {};
bb.width = ret.width;
bb.height = ret.height;
bb.x = ret.x + parseFloat(selected.getAttribute('x')||0);
bb.y = ret.y + parseFloat(selected.getAttribute('y')||0);
ret = bb;
} else {
try { ret = selected.getBBox(); }
catch(e) {
@ -3158,7 +3159,6 @@ var remapElement = this.remapElement = function(selected,changes,m) {
selected.setAttribute("d", dstr);
break;
}
};
// Function: updateClipPath