implementing resize method
Merge remote-tracking branch 'origin/d3_api' into d3_api