1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

bug 272912: Tool settings UI layout issues

patch from Gaetano Santoro
This commit is contained in:
Andrew Gvozdev 2009-09-01 13:35:59 +00:00
parent 798392d7ee
commit 07f340d670

View file

@ -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();
}
}
}