Figure height - can it be dynamic

I am having to use a large height setting in order for the image being saved to display my full table. If i leave blank, it truncates the data. Is there a way to ensure the full table is exported?

    fig.update_layout(
    width=1200,
    height=2000,
    showlegend=False,
    font=dict(size=10),
)

Sub plot is created using:

    fig = make_subplots(
    rows=2, cols=1,
    #shared_xaxes=True,
    #vertical_spacing=0.08,
    subplot_titles=('Account Summary', 'Portfolio Summary'),
    specs=[[{"type": "table"}],
           [{"type": "table"}]]
)