diff --git a/lib/ace/editor.js b/lib/ace/editor.js index aaacbf46..049f63d8 100644 --- a/lib/ace/editor.js +++ b/lib/ace/editor.js @@ -344,8 +344,8 @@ var Editor = function(renderer, session) { * Gets the current font size of the editor text. */ this.getFontSize = function () { - return this.setOption("fontSize") || - dom.computedStyle(ace.container, "fontSize") + return this.getOption("fontSize") || + dom.computedStyle(this.container, "fontSize"); }; /**