Fix incorrect measured height for children

There is a bug on measuring child views with a
constant set height as it would always return with
a height of 0. This causes the dummy view to omit
drawing these views.