From d11818bec05208533c8b4ba17941afb18561c0db Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Tue, 29 Sep 2009 17:55:51 +0000 Subject: [PATCH] Only stuff orphaned children into a layer if they have a bbox. Also remove some stray bits of logging left in git-svn-id: http://svg-edit.googlecode.com/svn/trunk@734 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 1 - editor/svgcanvas.js | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index cda470ab..3fc0a9c1 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -1228,7 +1228,6 @@ function svg_edit_setup() { } var centerCanvasIfNeeded = function() { - console.log('foo'); // this centers the canvas in the workarea if it's small enough var wa = {w: parseInt($('#workarea').css('width')), h: parseInt($('#workarea').css('height'))}; diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 25daf798..d829384b 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -1387,7 +1387,6 @@ function BatchCommand(text) { // and do nothing else var mouseDown = function(evt) { - console.dir(container); var mouse_x = evt.pageX - container.parentNode.offsetLeft + container.parentNode.scrollLeft - container.offsetLeft; var mouse_y = evt.pageY - container.parentNode.offsetTop + container.parentNode.scrollTop - container.offsetTop; @@ -2899,7 +2898,7 @@ function BatchCommand(text) { walkTree(child, function(e){e.setAttribute("style", "pointer-events:none");}); } } - else { + else if(child.getBBox) { orphans.push(child); } }