MCPcopy Create free account
hub / github.com/chieapp/chie / setAutoResize

Method setAutoResize

src/view/input-view.ts:63–68  ·  view source on GitHub ↗
(autoResize: {min: number, max: number})

Source from the content-addressed store, hash-verified

61 }
62
63 setAutoResize(autoResize: {min: number, max: number}) {
64 if (!this.autoResize)
65 this.entry.onTextChange = this.#adjustEntryHeight.bind(this);
66 this.autoResize = autoResize;
67 this.entry.setStyle({height: autoResize.min});
68 }
69
70 setText(text: string) {
71 this.entry.setText(text);

Callers 1

constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected