// Resize the shape
resizeShape(selection.element, dtw, dth);
if(ce!=null){
ce.addEdit(new ResizeEdit(dtw, dth, (Resizable)selection.element));
}
newBounds = selection.element.getBounds();
deltax = newBounds.width - oldBounds.width;
deltay = newBounds.height - oldBounds.height;