diff --git a/AceGWT/src/edu/ycp/cs/dh/acegwt/client/ace/AceEditor.java b/AceGWT/src/edu/ycp/cs/dh/acegwt/client/ace/AceEditor.java index f9a282e..bcac15b 100644 --- a/AceGWT/src/edu/ycp/cs/dh/acegwt/client/ace/AceEditor.java +++ b/AceGWT/src/edu/ycp/cs/dh/acegwt/client/ace/AceEditor.java @@ -214,9 +214,8 @@ public native int getFontSize() /*-{ * @param fontSize the font size to set, e.g., "16px" */ public native void setFontSize(String fontSize) /*-{ - var elementId = this.@edu.ycp.cs.dh.acegwt.client.ace.AceEditor::elementId; - var elt = $doc.getElementById(elementId); - elt.style.fontSize = fontSize; + var editor = this.@edu.ycp.cs.dh.acegwt.client.ace.AceEditor::editor; + editor.setFontSize(fontSize); }-*/; /** @@ -225,7 +224,7 @@ public native void setFontSize(String fontSize) /*-{ */ public native void setFontSize(int fontSize) /*-{ var editor = this.@edu.ycp.cs.dh.acegwt.client.ace.AceEditor::editor; - return editor.setFontSize(fontSize); + editor.setFontSize(fontSize); }-*/; /**