If your tree container has a fixed width, you could just use CSS to adjust it. Otherwise, you could manually resize your container like this,
resize: function(d) {
this.myContainer.resize(d);
}
If d is not of the proper size, you could use dojo getMarginBox(this.domNode) to get the size of your widget.