mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-16 15:03:35 +00:00
Match auto complete font size to editor font size
This commit is contained in:
parent
934f3cbcd8
commit
d221e336f0
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -88,7 +88,6 @@ define [
|
|||
completions.push {
|
||||
caption: caption
|
||||
snippet: snippet
|
||||
meta: "snippet"
|
||||
}
|
||||
|
||||
callback null, completions
|
||||
|
|
Loading…
Reference in a new issue