AceEditor is not getting displayed unless and until I don't change the size of the component(Resizable)
If I add any other HTML element like
Is there any way to make Ace editor resizable without any library.
<Resizable
defaultSize={{
width: 'auto',
height: 'auto',
}}
className="resizable-component"
>
<AceEditor
width="auto"
height="100%"
mode="html"
theme="monokai"
readOnly={false}
focus={autofocus}
onBlur={onBlur && (event => onBlur(id, event.target.value))}
onFocus={onFocus && (event => onFocus(id, event.target.value))}
onChange={this._onChange}
wrapEnabled={true}
showPrintMargin={true}
maxLines={40}
minLines={8}
highlightActiveLine={true}
setOptions={{
enableBasicAutocompletion: true,
enableLiveAutocompletion: true,
enableSnippets: false,
showLineNumbers: true,
tabSize: 2,
}}
/>
</Resizable>
Extra Question: How can I get the max line to depend on the window size.
Version:
"re-resizable": "6.2.0" "react-ace": "8.0.0"