Skip to content
This repository
Browse code

Fix SVG-Edit bug 1048

  • Loading branch information...
commit 8d44ed618405dd0f07b08c7e36a5d149e9f86239 1 parent aa6c4e1
Jacques Distler authored February 10, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  public/svg-edit/editor/svgutils.js
2  public/svg-edit/editor/svgutils.js
@@ -495,7 +495,7 @@ svgedit.utilities.getBBox = function(elem) {
495 495
 			ret = groupBBFix(selected, true);
496 496
 		}
497 497
 		
498  
-		if(elname === 'use') {
  498
+		if(elname === 'use' || ( elname="foreignObject" && svgedit.browser.isWebkit() ) ) {
499 499
 			if(!ret) ret = selected.getBBox();
500 500
 			// This is resolved in later versions of webkit, perhaps we should
501 501
 			// have a featured detection for correct 'use' behavior?

0 notes on commit 8d44ed6

Please sign in to comment.
Something went wrong with that request. Please try again.