Merge pull request #18 from liaoxuezhi/master

提交代码
Merge pull request #19 from liaoxuezhi/master

添加orientation自动调整