Automatically generate view box to scale to atom