@fc-components/monaco-editor 0.1.22 → 0.1.23
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 -2
- 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 -2
- package/dist/monaco-editor.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/sql/index.tsx +7 -2
package/package.json
CHANGED
package/src/sql/index.tsx
CHANGED
|
@@ -165,7 +165,7 @@ export default function SqlEditor(props: SqlEditorProps) {
|
|
|
165
165
|
const containerDiv = containerRef.current;
|
|
166
166
|
if (containerDiv !== null) {
|
|
167
167
|
const pixelHeight = editor.getContentHeight();
|
|
168
|
-
containerDiv.style.
|
|
168
|
+
containerDiv.style.minHeight = `${pixelHeight}px`;
|
|
169
169
|
containerDiv.style.width = '100%';
|
|
170
170
|
const pixelWidth = containerDiv.clientWidth;
|
|
171
171
|
editor.layout({ width: pixelWidth, height: pixelHeight });
|
|
@@ -242,7 +242,12 @@ export default function SqlEditor(props: SqlEditorProps) {
|
|
|
242
242
|
maxHeight,
|
|
243
243
|
}}
|
|
244
244
|
>
|
|
245
|
-
<div
|
|
245
|
+
<div
|
|
246
|
+
ref={containerRef}
|
|
247
|
+
style={{
|
|
248
|
+
height: '100%',
|
|
249
|
+
}}
|
|
250
|
+
>
|
|
246
251
|
<MonacoEditor
|
|
247
252
|
width='100%'
|
|
248
253
|
height='100%'
|