1 Commits

Author SHA1 Message Date
Yarden Eitan
e3acbb9b86
[TextFields] Allow customization of overflow and lines on OutlinedTextArea (#8570)
This PR moves the repeated overriding of expandsOnOverflow and minimumLines in the updateLayout which is repeatedly called throughout the lifecycle.

Instead, we are initializing those values at first to be defaults, and then they can be changed by the client using the MDCTextInputControllerBase API for those properties.

Tested in example to make sure this is working correctly.

Closes #8559
Closes #8558

The snapshots look like they are cut in the middle, this is because they are getting their bounds using `intrinsicContentSize` which does not take expandsToOverflow into regards. See: https://github.com/material-components/material-components-ios/issues/8573 for more info.
2019-10-11 15:58:59 -04:00