resizing logic update
Merge pull request #57 from JoeDou/joeDev

resizing logic update