changeset 4214:f20fb68594aa

RT-31475: Move a Property into the CSS on TableColumnHeader
author jgiles
date Tue, 09 Jul 2013 10:21:48 +1200
parents 1788f06e4db6
children 3ff782c8ad7b
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TableColumnHeader.java modules/controls/src/main/resources/com/sun/javafx/scene/control/skin/caspian/caspian.css modules/controls/src/main/resources/com/sun/javafx/scene/control/skin/modena/modena.css
diffstat 3 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TableColumnHeader.java	Tue Jul 09 10:14:50 2013 +1200
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/TableColumnHeader.java	Tue Jul 09 10:21:48 2013 +1200
@@ -421,7 +421,6 @@
 
         // --- label
         label = new Label();
-        label.setAlignment(Pos.CENTER);
         label.setText(column.getText());
         label.setGraphic(column.getGraphic());
         label.setVisible(column.isVisible());
--- a/modules/controls/src/main/resources/com/sun/javafx/scene/control/skin/caspian/caspian.css	Tue Jul 09 10:14:50 2013 +1200
+++ b/modules/controls/src/main/resources/com/sun/javafx/scene/control/skin/caspian/caspian.css	Tue Jul 09 10:21:48 2013 +1200
@@ -2388,6 +2388,11 @@
     -fx-background-insets: 1 0 -1 0, 0; 
 }
 
+.table-view .column-header .label,
+.tree-table-view .column-header .label {
+    -fx-alignment: center;
+}
+
 .table-view > .column-header-background > .show-hide-columns-button,
 .tree-table-view > .column-header-background > .show-hide-columns-button{
     -fx-background-color: -fx-body-color;
--- a/modules/controls/src/main/resources/com/sun/javafx/scene/control/skin/modena/modena.css	Tue Jul 09 10:14:50 2013 +1200
+++ b/modules/controls/src/main/resources/com/sun/javafx/scene/control/skin/modena/modena.css	Tue Jul 09 10:21:48 2013 +1200
@@ -2386,6 +2386,11 @@
     -fx-padding: 0.115em;
     -fx-background-radius: 0.115em;
 }
+.table-view .column-header .label,
+.tree-table-view .column-header .label {
+    -fx-alignment: center;
+}
+
 /* Plus Symbol */
 .table-view .show-hide-column-image,
 .tree-table-view .show-hide-column-image {