Compass with auto layout