Added method to constrain a view to a particular size - tweaks