I had the same problems and I found an older thread:
This seems to work for ExtJS 4.0 too.
(and if necessary panel.setWidth(null) )
after changing the content of the panel and autosizing will be reactivated again.
However this should be done automatically and it would be nice if version 4.0.2 could do this.