min/max number of lines to show

hello! is there a way, such as react-ace’s minLines/maxLines, to configure the min/max number of lines to be displayed? I think this may be a workaround for it. My use case is i have a code previewer that’s read only, and i want the height to be of that when the editor only shows, for instance, 10 lines. Is there a way to do so without changing the CSS? thanks!

No. Editor height is determined by CSS (or by document height when not setting a CSS height), and not computed in terms of lines.

got it. thank you!