title: UICollectionView header view auto layout messed up after rotation
body: <p>I have a simple UICollectionView using UICollectionViewFlowLayout. It also has a section supplementary view of kind UICollectionElementKindSectionHeader. When the section header is visible on screen and device is rotated, the constraints adjusts the sub-views of the header correctly.</p>
  
  <p>If I scroll away such that the section header is not visible on screen, rotate the device and scroll back to see the header view, the constraints of the sub-views do not update and adjust sub-views position according to the device rotation. Is there a fix to this? </p>
  
  <p>Essentially the header view (supplementary view) trailing space constraints with respect to the UICollectionView is not taking effect, this is how header view (white bar on top) looks like:</p>
  
  <p><img src="https://i.stack.imgur.com/maVZS.jpg" alt="enter image description here"></p>