Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8125093

[HTMLEditor] info about alignment by default disappeared.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: javafx
    • Environment:

      8.0b64, win7

    • Subcomponent:
      web

      Description

      I run HTML editor: 2.2.0b20 and 8.0b64.

      Select font Andalus.
      type "ggg".
      print the content.

      I see :
      8.0b64 : <html><head></head><body contenteditable="true"><p><font face="Andalus">ggg</font></p></body></html>
      2.2.0b20 : <html><head></head><body contenteditable="true"><p style="text-align: left;"><font face="Andalus">ggg</font></p></body></html>

      Also, it could look like this for another case:
      8.0b64 : <html><head></head><body contenteditable="true"><ol><ol><li><font face="ArialW7">Line 1</font></li></ol><li><font face="ArialW7">Line 2</font></li><li><font face="ArialW7">Line 3</font></li><li><font face="ArialW7">Line 4</font></li></ol><p><font face="ArialW7"><br></font></p></body></html>
      2.2.0b20 : <html><head></head><body contenteditable="true"><div style="text-align: left;"><ol><ol><li><font face="ArialW7">Line 1</font></li></ol><li><font face="ArialW7">Line 2</font></li><li><font face="ArialW7">Line 3</font></li><li><font face="ArialW7">Line 4</font></li></ol><p><font face="ArialW7"><br></font></p></div></body></html>

      So, <div style="text-align: left;"> is missed.

      But both htmleditors looks equally: by default "at left" alignment is chosen.

      Affected tests:
      ControlsAutomatedTestSuite/javafx/scene/control/test/richtexteditor/RichTextEditorTest/fontStyleTest
      ControlsAutomatedTestSuite/javafx/scene/control/test/richtexteditor/RichTextEditorTest/alignmentTest
      ControlsAutomatedTestSuite/javafx/scene/control/test/richtexteditor/RichTextEditorTest/colorTest
      ControlsAutomatedTestSuite/javafx/scene/control/test/richtexteditor/RichTextEditorTest/compositeTest
      ControlsAutomatedTestSuite/javafx/scene/control/test/richtexteditor/RichTextEditorTest/countChangeTypeTest
      ControlsAutomatedTestSuite/javafx/scene/control/test/richtexteditor/RichTextEditorTest/countIndentTest
      ControlsAutomatedTestSuite/javafx/scene/control/test/richtexteditor/RichTextEditorTest/countRemoveIndentTest
      ControlsAutomatedTestSuite/javafx/scene/control/test/richtexteditor/RichTextEditorTest/countTest
      ControlsAutomatedTestSuite/javafx/scene/control/test/richtexteditor/RichTextEditorTest/fontSizeTest
      ControlsAutomatedTestSuite/javafx/scene/control/test/richtexteditor/RichTextEditorTest/fontSizeTest

        Attachments

          Activity

            People

            Assignee:
            loneid Leonid Popov (Inactive)
            Reporter:
            akirov Alexander Kirov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: