Update for autoresizing purposes.