Handling text wrapping with infinite and finite maxWidth.