MCPcopy Create free account
hub / github.com/cryptii/cryptii / layoutTextarea

Method layoutTextarea

src/View/Viewer/Text.js:141–145  ·  view source on GitHub ↗

* Calculates height nessesary to view the text without scrollbars. * @protected * @return {TextViewerView} Fluent interface

()

Source from the content-addressed store, hash-verified

139 * @return {TextViewerView} Fluent interface
140 */
141 layoutTextarea () {
142 this._$textarea.style.height = ''
143 this._$textarea.style.height = `${this._$textarea.scrollHeight}px`
144 return this
145 }
146
147 /**
148 * Updates view on model change.

Callers 3

setTextMethod · 0.95
layoutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected