Size the result box correctly