Fixed some bugs

- fixed sample rotate problem
- fixed match parent problem, now tab host width can be customized