use same font size for completion popup and editor

This commit is contained in:
nightwing 2013-09-06 13:43:21 +04:00
commit 43d2a6607f
2 changed files with 4 additions and 1 deletions

View file

@ -69,6 +69,8 @@ var Autocomplete = function() {
var renderer = editor.renderer;
if (!keepPopupPosition) {
this.popup.setFontSize(editor.getFontSize());
var lineHeight = renderer.layerConfig.lineHeight;
var pos = renderer.$cursorLayer.getPixelPosition(this.base, true);
@ -220,6 +222,7 @@ var Autocomplete = function() {
editor.on("blur", this.blurListener);
editor.on("mousedown", this.mousedownListener);
editor.on("mousewheel", this.mousewheelListener);
this.updateCompletions();
}

View file

@ -251,7 +251,7 @@ dom.importCssString("\
}\
.ace_autocomplete .ace_completion-highlight{\
color: #000;\
text-shadow: 0 0 0.01px;\
text-shadow: 0 0 0.01em;\
}\
.ace_autocomplete {\
width: 280px;\