Fix header typesetting in medium squarish windows. Closes #188