Skip to content

Commit

Permalink
fix: 脚本编辑器的滚动条遮挡了字符 TencentBlueKing#2786
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 3129
  • Loading branch information
hLinx committed Feb 29, 2024
1 parent 131af79 commit 9e6870c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@blueking/user-selector": "1.0.11",
"@vue/babel-preset-jsx": "1.4.0",
"@vue/composition-api": "1.7.2",
"ace-builds": "1.31.2",
"ace-builds": "1.32.6",
"axios": "1.6.2",
"bk-magic-vue": "2.5.8-beta.6",
"core-js": "3.33.2",
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/src/components/ace-editor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -480,15 +480,15 @@
autoScrollEditorIntoView: true,
copyWithEmptySelection: true,
useElasticTabstops: true,
printMarginColumn: true,
printMargin: 80,
scrollPastEnd: 0.2,
});
editor.setTheme('ace/theme/monokai');
editor.setShowPrintMargin(false);
editor.$blockScrolling = Infinity;
editor.setReadOnly(this.readonly);

editor.renderer.setScrollMargin(0, 0, 0, 120);

editor.on('change', () => {
this.content = editor.getValue();
const content = Base64.encode(this.content);
Expand Down

0 comments on commit 9e6870c

Please sign in to comment.