Text-wrap calculations

For making sure text-width is calculated correctly across different
views.