title: How to keep correct layout for UIStackView's subview after the subview re-appears after device rotation?
body: <p>Hi have a <code>UIStackView</code> for which I have deselected the Installed property for compact heights:</p>
  
  <p><a href="https://i.stack.imgur.com/ewJ69m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ewJ69m.png" alt="enter image description here"></a></p>
  
  <p>Interface Builder shows the element in portrait mode and hides the element in landscape mode. When I run the app in the iPhone simulator, initially in portrait mode the element is rendered correctly (second row of buttons):</p>
  
  <p><a href="https://i.stack.imgur.com/9jIipm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9jIipm.png" alt="enter image description here"></a></p>
  
  <p>The element disappears after rotating right. But after rotating left again back to portrait mode, the element is rendered incorrectly (see top left of the screen):</p>
  
  <p><a href="https://i.stack.imgur.com/cztwkm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cztwkm.png" alt="enter image description here"></a></p>
  
  <p>Do I need to programmatically take care of the element's layout after is appears again? If so, where can I find documentation to help get me started with this?</p>