add setSize.  fix gulp build bug with browserify