Skip to content

Commit 43d2a66

Browse files
committed
use same font size for completion popup and editor
1 parent 5b6a1df commit 43d2a66

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/ace/autocomplete.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ var Autocomplete = function() {
6969

7070
var renderer = editor.renderer;
7171
if (!keepPopupPosition) {
72+
this.popup.setFontSize(editor.getFontSize());
73+
7274
var lineHeight = renderer.layerConfig.lineHeight;
7375

7476
var pos = renderer.$cursorLayer.getPixelPosition(this.base, true);
@@ -220,6 +222,7 @@ var Autocomplete = function() {
220222
editor.on("blur", this.blurListener);
221223
editor.on("mousedown", this.mousedownListener);
222224
editor.on("mousewheel", this.mousewheelListener);
225+
223226
this.updateCompletions();
224227
}
225228

lib/ace/autocomplete/popup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ dom.importCssString("\
251251
}\
252252
.ace_autocomplete .ace_completion-highlight{\
253253
color: #000;\
254-
text-shadow: 0 0 0.01px;\
254+
text-shadow: 0 0 0.01em;\
255255
}\
256256
.ace_autocomplete {\
257257
width: 280px;\

0 commit comments

Comments
 (0)