Reviewers: jgw, Description: JustifyFull is widely supported, but it isn't an option in RichTextArea. This patch adds it in.
I verified that JustifyFull works correctly on all browsers. Please review this at http://gwt-code-reviews.appspot.com/47805 Affected files: user/src/com/google/gwt/user/client/ui/RichTextArea.java user/src/com/google/gwt/user/client/ui/impl/RichTextAreaImplStandard.java Index: user/src/com/google/gwt/user/client/ui/impl/RichTextAreaImplStandard.java =================================================================== --- user/src/com/google/gwt/user/client/ui/impl/RichTextAreaImplStandard.java (revision 5628) +++ user/src/com/google/gwt/user/client/ui/impl/RichTextAreaImplStandard.java (working copy) @@ -191,6 +191,8 @@ public void setJustification(Justification justification) { if (justification == Justification.CENTER) { execCommand("JustifyCenter", null); + } else if (justification == Justification.FULL) { + execCommand("JustifyFull", null); } else if (justification == Justification.LEFT) { execCommand("JustifyLeft", null); } else if (justification == Justification.RIGHT) { Index: user/src/com/google/gwt/user/client/ui/RichTextArea.java =================================================================== --- user/src/com/google/gwt/user/client/ui/RichTextArea.java (revision 5628) +++ user/src/com/google/gwt/user/client/ui/RichTextArea.java (working copy) @@ -309,6 +309,11 @@ public static final Justification CENTER = new Justification("Center"); /** + * Full justification. + */ + public static final Justification FULL = new Justification("Full"); + + /** * Left justification. */ public static final Justification LEFT = new Justification("Left"); --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---
