Skip to content

Commit

Permalink
Fix setfontsize
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Aranega committed Feb 9, 2016
1 parent 61929b6 commit fab8242
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions AceGWT/src/edu/ycp/cs/dh/acegwt/client/ace/AceEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [email protected]::elementId;
var elt = $doc.getElementById(elementId);
elt.style.fontSize = fontSize;
var editor = [email protected]::editor;
editor.setFontSize(fontSize);
}-*/;

/**
Expand All @@ -225,7 +224,7 @@ public native void setFontSize(String fontSize) /*-{
*/
public native void setFontSize(int fontSize) /*-{
var editor = [email protected]::editor;
return editor.setFontSize(fontSize);
editor.setFontSize(fontSize);
}-*/;

/**
Expand Down

0 comments on commit fab8242

Please sign in to comment.