diff options
author | Veronika Irvine <veronika> | 2006-04-10 20:48:27 +0000 |
---|---|---|
committer | Veronika Irvine <veronika> | 2006-04-10 20:48:27 +0000 |
commit | e55f2630725c3df62f871346bb3afb6a3b687b35 (patch) | |
tree | 11cdc1d9316225890920927869d0f3d13349fd38 | |
parent | 9167c1dc4954b55dce10ed59193759bf15f0af32 (diff) | |
download | eclipse.platform.swt-e55f2630725c3df62f871346bb3afb6a3b687b35.tar.gz eclipse.platform.swt-e55f2630725c3df62f871346bb3afb6a3b687b35.tar.xz eclipse.platform.swt-e55f2630725c3df62f871346bb3afb6a3b687b35.zip |
Bug 127132 - TableColumn#pack does not work for virtual table
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java index e76dcf28e9..5565d6a6ca 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java @@ -379,7 +379,12 @@ public void pack () { width = requisition.width; } if ((parent.style & SWT.VIRTUAL) != 0) { - //NOT DONE + for (int i=0; i<parent.items.length; i++) { + TableItem item = parent.items [i]; + if (item != null && item.cached) { + width = Math.max (width, parent.calculateWidth (handle, item.handle)); + } + } } else { int /*long*/ iter = OS.g_malloc (OS.GtkTreeIter_sizeof ()); if (OS.gtk_tree_model_get_iter_first (parent.modelHandle, iter)) { |