Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: auto adjust editor height later (#5979)
Liu Ji472dabafa400
diff --git a/frontend/src/components/Issue/IssueTaskStatementPanel.vue b/frontend/src/components/Issue/IssueTaskStatementPanel.vueindex e6d90c2fd7..5ff0965e72 100644--- a/frontend/src/components/Issue/IssueTaskStatementPanel.vue+++ b/frontend/src/components/Issue/IssueTaskStatementPanel.vue@@ -491,7 +491,9 @@ const handleUploadFile = async (event: Event, tick: (p: number) => void) => {updateSheetId(sheet.id);await updateStatement(statement);state.editing = false;- if (selectedTask.value) updateEditorHeight();+ if (selectedTask.value) {+ updateEditorHeight();+ }};return new Promise((resolve, reject) => {@@ -631,20 +633,20 @@ const handleUpdateEditorAutoCompletionContext = async () => {};const updateEditorHeight = () => {- const contentHeight =- editorRef.value?.editorInstance?.getContentHeight() as number;- let actualHeight = contentHeight;- if (state.editing && actualHeight < EDITOR_MIN_HEIGHT.EDITABLE) {- actualHeight = EDITOR_MIN_HEIGHT.EDITABLE;- }- editorRef.value?.setEditorContentHeight(actualHeight);+ requestAnimationFrame(() => {+ const contentHeight =+ editorRef.value?.editorInstance?.getContentHeight() as number;+ let actualHeight = contentHeight;+ if (state.editing && actualHeight < EDITOR_MIN_HEIGHT.EDITABLE) {+ actualHeight = EDITOR_MIN_HEIGHT.EDITABLE;+ }+ editorRef.value?.setEditorContentHeight(actualHeight);+ });};const handleMonacoEditorReady = () => {handleUpdateEditorAutoCompletionContext();- requestAnimationFrame(() => {- updateEditorHeight();- });+ updateEditorHeight();};watch([databaseList, tableList], () => {