Set resizeToplevel property.
When this property is true, the expander will resize the toplevel widget containing the expander upon expanding and collapsing.
Set resizeToplevel property.