Rename updatePreferredWidth to make it more explicit.