Auto layout wrap issue

Is it possible to create a layout such as the one on the left side with auto layout?
The best I could achieve is the one on the right side.

Thank you!