Sets the maximum height of the textarea as determined by maxRows.
()
| 144 | |
| 145 | /** Sets the maximum height of the textarea as determined by maxRows. */ |
| 146 | _setMaxHeight(): void { |
| 147 | const maxHeight = |
| 148 | this.maxRows && this._cachedLineHeight ? `${this.maxRows * this._cachedLineHeight}px` : null; |
| 149 | |
| 150 | if (maxHeight) { |
| 151 | this._textareaElement.style.maxHeight = maxHeight; |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | ngAfterViewInit() { |
| 156 | if (this._platform.isBrowser) { |
no outgoing calls
no test coverage detected