Skip to content

Commit

Permalink
Merge pull request #26 from aranega/fix/setfontsize
Browse files Browse the repository at this point in the history
Fix bad `setFontSize(String...)`
  • Loading branch information
Ainsley committed Feb 9, 2016
2 parents 61929b6 + fab8242 commit 9d660df
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 9d660df

Please sign in to comment.