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-75d572ba1dddmaster
parent
c588d0d74d
commit
d11818bec0
|
@ -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'))};
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue