Pivot now adjusts headers layout with control size. Added and updated unit tests.