< prev index next >
modules/javafx.controls/src/main/java/javafx/scene/control/skin/TableSkinUtils.java
Print this page
*** 138,153 ****
double headerWidth = headerTextWidth + headerGraphicWidth + 10 + header.snappedLeftInset() + header.snappedRightInset();
maxWidth = Math.max(maxWidth, headerWidth);
// RT-23486
maxWidth += padding;
! if(tv.getColumnResizePolicy() == TableView.CONSTRAINED_RESIZE_POLICY) {
! maxWidth = Math.max(maxWidth, tc.getWidth());
! }
!
TableColumnBaseHelper.setWidth(tc, maxWidth);
}
/*
* FIXME: Naive implementation ahead
* Attempts to resize column based on the pref width of all items contained
--- 138,153 ----
double headerWidth = headerTextWidth + headerGraphicWidth + 10 + header.snappedLeftInset() + header.snappedRightInset();
maxWidth = Math.max(maxWidth, headerWidth);
// RT-23486
maxWidth += padding;
! if (tv.getColumnResizePolicy() == TableView.CONSTRAINED_RESIZE_POLICY && tv.getWidth() != 0) {
! resizeColumn(tableSkin, tc , Math.round(maxWidth - tc.getWidth()));
! } else {
TableColumnBaseHelper.setWidth(tc, maxWidth);
}
+ }
/*
* FIXME: Naive implementation ahead
* Attempts to resize column based on the pref width of all items contained
< prev index next >