Page MenuHomePhabricator

MultilineTextInput should autosize when setValue() is used
Closed, InvalidPublic

Description

When setValue() is used on an autosizing MutltilineTextInput, the size remains the same even if the resulting text takes more lines than currently in the MultilineTextInput.

Event Timeline

The particular instance that I had problems with seems to be caused by a timing error where the setValue() was called just before a dialog was opened instead of after. This meant that the setValue() function and the subsequent adjustSize() function where called while the field was hidden, causing the anomaly.