From a464b6bbf56e5d511c427870bc21489a6100b871 Mon Sep 17 00:00:00 2001 From: Sean Evoy Date: Tue, 1 Jun 2004 21:29:09 +0000 Subject: [PATCH] Fix for bugzilla 59164 - Include Path list should be bigger. The list cntrols are now created with a height hint of 3x the height of the menu bar (usually this will equal 75 units). --- .../cdt/managedbuilder/ui/properties/FileListControl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/FileListControl.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/FileListControl.java index 1dc96945894..462f64f9861 100644 --- a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/FileListControl.java +++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/FileListControl.java @@ -26,6 +26,7 @@ import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionListener; import org.eclipse.swt.graphics.Image; +import org.eclipse.swt.graphics.Point; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; @@ -231,9 +232,10 @@ public class FileListControl { // list control list = new List(filePanel, SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER); grid4 = new GridData(GridData.FILL_BOTH); - grid4.heightHint = 38; // force the list to be no wider than the title bar - grid4.widthHint = titlePanel.getSize().x; + Point preferredSize = titlePanel.computeSize(SWT.DEFAULT, SWT.DEFAULT); + grid4.widthHint = preferredSize.x; + grid4.heightHint = preferredSize.y * 3; grid4.horizontalSpan = 2; list.setLayoutData(grid4); list.addSelectionListener(getSelectionListener());