Fix for auto layout as discussed in #578

Created `AutoLayoutViewModelViewHost` class. Still struggling with git a bit, sorry for the mess.