adjust the max pen toolbar length to avoid curtailed content