add auto resize
Merge branch 'master' of https://github.com/fireball-x/atlas-editor