dynamically adjusting text heights in the detail view