Fixes #86925 by setting the autoHeight config to true in both the panel ...

...and the window.