Fix updating line endpoint when text causes box to change size