I will typically make these types of widgets work with jQuery++'s resize event. After inserting the fragment, I'll call .resize() on the container.
Autogrow should be listening to resize and do it's sizing.
$("#form").html( can.view("template.ejs", data ) ).resize()