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

TableView -fx-alignment: center-left in TableCell doesn't work

    XMLWordPrintable

Details

    Description

      Create a TableView and apply the following CSS file:

      .table-cell {
          -fx-alignment: center-left;
      }

      .table-row-cell {
          -fx-cell-size: 50px;
      }

      The text in the table cells will be aligned top-left instead of center-left, Screenshot: https://dl.dropboxusercontent.com/u/84552/issues/rt-34446_1.png.
      If you change the CSS to:

      .table-cell {
          -fx-alignment: center-right;
      }

      Now the text will be aligned to the center-right position like expected, Screenshot: https://dl.dropboxusercontent.com/u/84552/issues/rt-34446_2.png.

      Please find some code to test it here: https://dl.dropboxusercontent.com/u/84552/issues/rt-34446.zip

      Attachments

        Issue Links

          Activity

            People

              jgiles Jonathan Giles
              ggrunwald Gerrit Grunwald (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: