node/lib/metasm/metasm/gui/dasm_graph.rb
# actually move boxes inside the groups
actually move boxes inside the groups
actually move boxes inside the groups
def auto_arrange_movebox
		@groups.each { |g|
			dx = (g.x + g.w/2).to_i
			dy = (g.y + g.h/2).to_i
			g.content.each { |b|
				b.x += dx
				b.y += dy
			}
		}
	end
def auto_arrange_movebox @groups . each { | g | dx = ( g . x + g . w / 2 ) . to_i dy = ( g . y + g . h / 2 ) . to_i g . content . each { | b | b . x += dx b . y += dy } } end
actually move boxes inside the groups
actually move boxes inside the groups