changeset 5737:eaaee0a8bf4a

RT-25239: [TableView] resizing of nonresizable column can be done with autosizing.
author jgiles
date Tue, 12 Nov 2013 15:00:04 +1300
parents f8e3cfc08d81
children 3c6808a1eb1d
files modules/controls/src/main/java/com/sun/javafx/scene/control/skin/NestedTableColumnHeader.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/NestedTableColumnHeader.java	Tue Nov 12 13:43:45 2013 +1300
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/skin/NestedTableColumnHeader.java	Tue Nov 12 15:00:04 2013 +1300
@@ -148,7 +148,9 @@
             if (me.getClickCount() == 2 && me.isPrimaryButtonDown()) {
                 // the user wants to resize the column such that its
                 // width is equal to the widest element in the column
-                header.getTableViewSkin().resizeColumnToFitContent(column, -1);
+                if (column.isResizable()) {
+                    header.getTableViewSkin().resizeColumnToFitContent(column, -1);
+                }
             } else {
                 // rather than refer to the rect variable, we just grab
                 // it from the source to prevent a small memory leak.