in src/plugin/fieldViews/NestedElementFieldView.ts [137:152]
void waitForNextLayout().then(() => {
if (!this.innerEditorView) {
return;
}
const { lineHeight, paddingTop } = window.getComputedStyle(
this.innerEditorView.dom
);
const domElement = this.innerEditorView.dom as HTMLDivElement;
if (minRows !== undefined) {
const initialInputHeightPx = `${
parseInt(lineHeight, 10) * minRows + parseInt(paddingTop) * 2
}px`;
domElement.style.minHeight = initialInputHeightPx;
}
});