Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolSettingsTab.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolSettingsTab.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolSettingsTab.java
index 9f13f76f455..798e739c2fd 100644
--- a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolSettingsTab.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolSettingsTab.java
@@ -32,7 +32,6 @@ import org.eclipse.cdt.managedbuilder.core.ITool;
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
import org.eclipse.cdt.managedbuilder.internal.core.MultiConfiguration;
import org.eclipse.cdt.managedbuilder.internal.macros.BuildMacroProvider;
-import org.eclipse.cdt.ui.newui.AbstractPage;
import org.eclipse.cdt.ui.newui.PageLayout;
import org.eclipse.core.resources.IResource;
import org.eclipse.jface.preference.IPreferencePageContainer;
@@ -122,7 +121,7 @@ public class ToolSettingsTab extends AbstractCBuildPropertyTab implements IPrefe
private int calcExtra() {
int x = optionList.getTree().getBorderWidth() * 2;
ScrollBar sb = optionList.getTree().getVerticalBar();
- if (sb != null) x += sb.getSize().x;
+ if (sb != null && sb.isVisible()) x += sb.getSize().x;
return x;
}
@@ -392,13 +391,6 @@ public class ToolSettingsTab extends AbstractCBuildPropertyTab implements IPrefe
} else {
displayOptionsForTool(toolListElement);
}
-
- ScrollBar sb = containerSC.getHorizontalBar();
- if (sb != null && sb.isVisible()) {
- settingsPageContainer.pack(true);
- containerSC.setMinSize(settingsPageContainer.getSize());
- ((AbstractPage)page).resize();
- }
}
}

Back to the top