I'm fighting with scrollviews in autolayout (iOS 6,7) for some time now, and it's getting depressing.

Consider a simple entry form
============================

that I want be scrollable, and that should resize in landscape:

![portrait](https://i.stack.imgur.com/w8sAN.png)

### Views hierarchy is:

![view hierarchy](https://i.stack.imgur.com/2Lvqn.png)

### I need to configure proper constraints so that

* scrolling area gets updated properly when keyboard appears and disappears
* content gets resized when device is rotated to landscape and back to portrait
* scrolling area gets updated for landscape and portrait appropriately

### Could this be done with no code?

What I get instead
==================

### Wrong scroll size when keyboard appears

![wrong scroll size](https://i.stack.imgur.com/w3v4S.png)

### Content not resized in landscape

![no resize in landscape](https://i.stack.imgur.com/KJidN.png)

### Source code to play with:

[source code](https://dl.dropboxusercontent.com/u/19560069/so/protoautol.zip)