enableAutoHeight and updateFromXML

I am setting enableAutoHeight to true before the init of my grid. Later I call updateFromXML with insertnewrows and removedeletedrows both set to true. it does add and delete rows as it should, however the height is not readjusted when calling updateFromXML. please help

Please try to use

grid.updateFromXML(url, true, true, function(){
grid.setSizes();
});