Skip to content

Commit

Permalink
[TextControls] Call -[MDCBaseTextAreaDelegate baseTextArea:shouldChan…
Browse files Browse the repository at this point in the history
…geSize:] when setting assistive label text (if needed).

Since setting the assistive label text causes the text area's size to change, we should call the -[MDCBaseTextAreaDelegate baseTextArea:shouldChangeSize:] method when it happens.

PiperOrigin-RevId: 341068027
  • Loading branch information
Nobody authored and material-automation committed Nov 6, 2020
1 parent 67e70a6 commit 0b7be00
Showing 1 changed file with 0 additions and 1 deletion.
Expand Up @@ -632,7 +632,6 @@ - (void)observeValueForKeyPath:(NSString *)keyPath

for (NSString *assistiveLabelKeyPath in [MDCBaseTextArea assistiveLabelKVOKeyPaths]) {
if ([assistiveLabelKeyPath isEqualToString:keyPath]) {
[self invalidateIntrinsicContentSize];
[self setNeedsLayout];
break;
}
Expand Down

0 comments on commit 0b7be00

Please sign in to comment.