@fc-components/monaco-editor 0.1.22 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/monaco-editor.cjs.development.js +5 -3
- package/dist/monaco-editor.cjs.development.js.map +1 -1
- package/dist/monaco-editor.cjs.production.min.js +1 -1
- package/dist/monaco-editor.cjs.production.min.js.map +1 -1
- package/dist/monaco-editor.esm.js +5 -3
- package/dist/monaco-editor.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/sql/index.tsx +7 -3
|
@@ -3587,7 +3587,7 @@ function SqlEditor(props) {
|
|
|
3587
3587
|
var containerDiv = containerRef.current;
|
|
3588
3588
|
if (containerDiv !== null) {
|
|
3589
3589
|
var pixelHeight = editor$1.getContentHeight();
|
|
3590
|
-
containerDiv.style.
|
|
3590
|
+
containerDiv.style.minHeight = pixelHeight + "px";
|
|
3591
3591
|
containerDiv.style.width = '100%';
|
|
3592
3592
|
var pixelWidth = containerDiv.clientWidth;
|
|
3593
3593
|
editor$1.layout({
|
|
@@ -3642,7 +3642,10 @@ function SqlEditor(props) {
|
|
|
3642
3642
|
maxHeight: maxHeight
|
|
3643
3643
|
}
|
|
3644
3644
|
}, React.createElement("div", {
|
|
3645
|
-
ref: containerRef
|
|
3645
|
+
ref: containerRef,
|
|
3646
|
+
style: {
|
|
3647
|
+
height: '100%'
|
|
3648
|
+
}
|
|
3646
3649
|
}, React.createElement(MonacoEditor, {
|
|
3647
3650
|
width: '100%',
|
|
3648
3651
|
height: '100%',
|
|
@@ -3664,7 +3667,6 @@ function SqlEditor(props) {
|
|
|
3664
3667
|
scrollBeyondLastLine: false,
|
|
3665
3668
|
smoothScrolling: true,
|
|
3666
3669
|
fontSize: fontSize,
|
|
3667
|
-
lineHeight: 24,
|
|
3668
3670
|
tabSize: 2,
|
|
3669
3671
|
wordWrap: 'on',
|
|
3670
3672
|
automaticLayout: true,
|