Fix view layout schema definition. Closes #1335