Added snapping to resize, if snap set.