Fixed height size issue when using dynamic type