Can I update the logic for double clicking / reseting axes on plotly python?

When someone double clicks on a chart or selects the reset axes button, the chart both resets the axes and autosizes the chart. I like the reseting the axes part, but the autosizing ends up with the wrong y axes for my particular use case.

Can I edit the logic so that it resets the axes but does not autosize the chart?