Fix Bug 1048 (foreignObject selection in Webkit)

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2348 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jacques Distler 2013-02-10 17:07:30 +00:00
parent 9041ef9609
commit 7fe3d3ef2d
1 changed files with 1 additions and 1 deletions

View File

@ -495,7 +495,7 @@ svgedit.utilities.getBBox = function(elem) {
ret = groupBBFix(selected, true);
}
if(elname === 'use') {
if(elname === 'use' || ( elname="foreignObject" && svgedit.browser.isWebkit() ) ) {
if(!ret) ret = selected.getBBox();
// This is resolved in later versions of webkit, perhaps we should
// have a featured detection for correct 'use' behavior?