Calculate the UI position by windows size
Merge pull request #25 from RaoZiJian/master

Calculate the UI position by windows size