Fixed rotation. Now properly uses bounds instead of frame for layout.