-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from aranega/fix/setfontsize
Fix bad `setFontSize(String...)`
- Loading branch information
Showing
1 changed file
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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); | ||
}-*/; | ||
|
||
/** | ||
|
@@ -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); | ||
}-*/; | ||
|
||
/** | ||
|