Applying this logic to foreignObject leads to incorrect positioning of the grip for the element (displaced from its correct location by (x,y) ).

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2081 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jacques Distler
2012-05-22 12:05:25 +00:00
parent 519859eaf8
commit a808ea61ef

View File

@@ -495,7 +495,7 @@ svgedit.utilities.getBBox = function(elem) {
ret = groupBBFix(selected, true);
}
if(elname === 'use' || elname === 'foreignObject') {
if(elname === 'use') {
if(!ret) ret = selected.getBBox();
if(!svgedit.browser.isWebkit()) {
var bb = {};