Skip to content

Commit

Permalink
fix(desltop): fix editor layout issue when conn-list visible change
Browse files Browse the repository at this point in the history
  • Loading branch information
ysfscream authored and Red-Asuka committed Jan 24, 2024
1 parent 7c6aa17 commit cb1d412
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default class Editor extends Vue {
@Model('change', { type: String }) private readonly value!: string
@Getter('currentTheme') private theme!: Theme
@Getter('showConnectionList') private showConnectionList!: boolean
private editor: monaco.editor.IStandaloneCodeEditor | null = null
Expand Down Expand Up @@ -66,6 +67,13 @@ export default class Editor extends Vue {
}
}
@Watch('showConnectionList')
private handleShowConnectionListChanged(val: boolean) {
setTimeout(() => {
this.editorLayout()
}, 500)
}
// init and register customer editor style
private initCustomerLanguages() {
this.registerLog()
Expand Down

0 comments on commit cb1d412

Please sign in to comment.