Fixed rotation. Now properly uses bounds instead of frame for layout.
Merge pull request #2 from Clancey/master

fixed rotation