Size of pie chart changes when adding legend?

Hi guys,

Is it possible to keep the same size of the pie chart even after adding the legend?
In see the size of the chart changes based on the size of the legend.

Does fig.update_layout(width=400, height=500) perhaps do the job?