title: How to scale down NSImageView proportionally using auto layout?
body: <p>I have multiple <code>NSImageView</code> of different dimensions and proportions that are stacked vertically in a view that has limited horizontal space.</p>
  
  <p>Since the image dimensions can be larger than the size of the parent view I want to scale them down proportionally by using <code>NSImageScaleProportionallyDown</code>.</p>
  
  <p>The problem for me seems to be the default behaviour of <code>NSImageViews</code> where it only scales down the axis that exceeds the constraints set by auto layout and then centers the <code>NSImage</code> in the <code>NSImageView</code>, this causes the <code>NSImageView</code> to take up as much height as if it was not scaled down at all and breaks the vertical flow since the space between the images vary.</p>
  
  <p>I have tried to set <code>[questionImage setContentHuggingPriority:NSLayoutPriorityRequired forOrientation:NSLayoutConstraintOrientationHorizontal];</code> without any success.</p>
  
  <p>So how do you make the NSImageView only take up as much space as the proportionally scaled NSImage requires?</p>