core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/internal/sdk/ui/SDKPreferencePage.java
branchC3_BUILDER_WORK
changeset 1446 0609cdacce9e
parent 1434 79471fd1fd69
child 1451 1d88f6209d70
--- a/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/internal/sdk/ui/SDKPreferencePage.java	Tue Jun 08 16:16:02 2010 -0500
+++ b/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/internal/sdk/ui/SDKPreferencePage.java	Tue Jun 08 16:18:09 2010 -0500
@@ -478,9 +478,16 @@
 
 	private void createSDKTable() {
 		final Table table = sdkListTableViewer.getTable();
+		int count = table.getItemCount();
+		if (count < 10) {	// min. number of rows
+			count = 10;
+		} else 
+		if (count > 20) {	// max. number of rows
+			count = 20;
+		}
 		GridData gridData = new GridData(SWT.FILL, SWT.CENTER, true, false);
 		gridData.widthHint = 350;
-		gridData.heightHint = table.getItemHeight() * 10;
+		gridData.heightHint = table.getItemHeight() * count;
 		table.setLayoutData(gridData);
 		table.setHeaderVisible(true);
 		table.setLinesVisible(false);