You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2009/10/14 18:53:30 UTC
svn commit: r825191 -
/incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/terra/TerraTableViewHeaderSkin.java
Author: gbrown
Date: Wed Oct 14 16:53:29 2009
New Revision: 825191
URL: http://svn.apache.org/viewvc?rev=825191&view=rev
Log:
Minor fix associated with revision 825190.
Modified:
incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/terra/TerraTableViewHeaderSkin.java
Modified: incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/terra/TerraTableViewHeaderSkin.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/terra/TerraTableViewHeaderSkin.java?rev=825191&r1=825190&r2=825191&view=diff
==============================================================================
--- incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/terra/TerraTableViewHeaderSkin.java (original)
+++ incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/terra/TerraTableViewHeaderSkin.java Wed Oct 14 16:53:29 2009
@@ -721,11 +721,14 @@
TableView tableView = tableViewHeader.getTableView();
if (resizeHeaderIndex != -1) {
- if (count == 2) {
- // Calculate the maximum cell width
+ TableView.Column column = tableView.getColumns().get(resizeHeaderIndex);
+
+ if (count == 2
+ && !column.isRelative()
+ && column.getWidth() != -1) {
+ // Size the column to fit its contents
int columnWidth = 0;
- TableView.Column column = tableView.getColumns().get(resizeHeaderIndex);
TableView.CellRenderer cellRenderer = column.getCellRenderer();
List<?> tableData = tableView.getTableData();