diff options
| author | Chris Navarro | 2013-03-12 02:24:23 +0000 |
|---|---|---|
| committer | Jeffrey Overbey | 2013-03-12 02:24:23 +0000 |
| commit | 17aa0643c6984ec82266aa58a6f473c9143f8531 (patch) | |
| tree | 16fad34bb0b5fa93625354d9b2ff81c2f502b53c | |
| parent | bc3bad79722181e2dc6d4205ae68fdfb66a06031 (diff) | |
| download | org.eclipse.ptp-17aa0643c6984ec82266aa58a6f473c9143f8531.tar.gz org.eclipse.ptp-17aa0643c6984ec82266aa58a6f473c9143f8531.tar.xz org.eclipse.ptp-17aa0643c6984ec82266aa58a6f473c9143f8531.zip | |
Bug 394121 - Module list may not display after checking Enable Env Mgmt
| -rw-r--r-- | core/org.eclipse.ptp.ems.ui/src/org/eclipse/ptp/ems/ui/EnvManagerConfigWidget.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/org.eclipse.ptp.ems.ui/src/org/eclipse/ptp/ems/ui/EnvManagerConfigWidget.java b/core/org.eclipse.ptp.ems.ui/src/org/eclipse/ptp/ems/ui/EnvManagerConfigWidget.java index 494b8fd1d..596436ea0 100644 --- a/core/org.eclipse.ptp.ems.ui/src/org/eclipse/ptp/ems/ui/EnvManagerConfigWidget.java +++ b/core/org.eclipse.ptp.ems.ui/src/org/eclipse/ptp/ems/ui/EnvManagerConfigWidget.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012 University of Illinois and others. + * Copyright (c) 2012, 2013 University of Illinois and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -7,6 +7,7 @@ * * Contributors: * Jeff Overbey (Illinois) - initial API and implementation + * Chris Navarro (Illinois) - fix for Bug 394121 *******************************************************************************/ package org.eclipse.ptp.ems.ui; @@ -127,10 +128,12 @@ public final class EnvManagerConfigWidget extends Composite { stackLayout.topControl = envConfigTextbox; } else { stackLayout.topControl = envConfigChecklist; + stack.setSize(envConfigChecklist.computeSize(SWT.DEFAULT, SWT.DEFAULT)); } } else { stackLayout.topControl = noEnvConfigLabel; } + stack.getParent().layout(); stack.layout(); } @@ -163,7 +166,7 @@ public final class EnvManagerConfigWidget extends Composite { private void createStack(Composite composite) { stack = new Composite(composite, SWT.NONE); - stack.setLayoutData(new GridData(GridData.FILL_BOTH)); + stack.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); stackLayout = new StackLayout(); stack.setLayout(stackLayout); } |
