Changing frame by updating layout. This works now, but it is unclear why the content hugging does not work.
Fixed non-scrolling version by setting constraint value.