Skip to content

Commit

Permalink
fix: 脚本编辑器的滚动条遮挡了字符 TencentBlueKing#2786
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 3475
  • Loading branch information
hLinx committed Mar 7, 2024
1 parent 131af79 commit 1e76535
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ support-files/dependJarLists/
**/*.DS_Store
.codecc
build.yml


pre-*-bkcodeai
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, 30);

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

0 comments on commit 1e76535

Please sign in to comment.