Match auto complete font size to editor font size

This commit is contained in:
James Allen 2014-03-04 17:41:37 +00:00
parent 934f3cbcd8
commit d221e336f0
2 changed files with 4 additions and 4 deletions

View file

@ -31,9 +31,7 @@ define [
enableBasicAutocompletion: true,
enableSnippets: true
})
snippetManager = @aceEditor.completers[0]
console.log snippetManager
@aceEditor.completers = [snippetManager, @suggestionManager]
@aceEditor.completers = [@suggestionManager]
@bindToEditorEvents()
@ -55,4 +53,7 @@ define [
if commandFragment?
setTimeout () =>
@aceEditor.execCommand("startAutocomplete")
$(@aceEditor.completer.popup.container)
.find(".ace_content")
.css("font-size": window.userSettings.fontSize + "px")
, 0

View file

@ -88,7 +88,6 @@ define [
completions.push {
caption: caption
snippet: snippet
meta: "snippet"
}
callback null, completions