Преглед на файлове

Set autocomplete menu to editor font size

James Allen преди 12 години
родител
ревизия
e102e65325
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee

+ 3 - 2
services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee

@@ -86,16 +86,17 @@ define [
 					
 					
 					Autocomplete::_insertMatch.call this, data
 					Autocomplete::_insertMatch.call this, data
 
 
-				# Overwrite this to set autoInsert = false
+				# Overwrite this to set autoInsert = false and set font size
 				Autocomplete.startCommand = {
 				Autocomplete.startCommand = {
 					name: "startAutocomplete",
 					name: "startAutocomplete",
-					exec: (editor) ->
+					exec: (editor) =>
 						if (!editor.completer)
 						if (!editor.completer)
 							editor.completer = new Autocomplete()
 							editor.completer = new Autocomplete()
 						editor.completer.autoInsert = false
 						editor.completer.autoInsert = false
 						editor.completer.autoSelect = true
 						editor.completer.autoSelect = true
 						editor.completer.showPopup(editor)
 						editor.completer.showPopup(editor)
 						editor.completer.cancelContextMenu()
 						editor.completer.cancelContextMenu()
+						$(editor.completer.popup.container).css({'font-size': @$scope.fontSize + 'px'})
 					bindKey: "Ctrl-Space|Ctrl-Shift-Space|Alt-Space"
 					bindKey: "Ctrl-Space|Ctrl-Shift-Space|Alt-Space"
 				}
 				}