mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
bug 272912: Tool settings UI layout issues
patch from Gaetano Santoro
This commit is contained in:
parent
798392d7ee
commit
07f340d670
1 changed files with 1 additions and 9 deletions
|
@ -32,7 +32,6 @@ import org.eclipse.cdt.managedbuilder.core.ITool;
|
||||||
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
|
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
|
||||||
import org.eclipse.cdt.managedbuilder.internal.core.MultiConfiguration;
|
import org.eclipse.cdt.managedbuilder.internal.core.MultiConfiguration;
|
||||||
import org.eclipse.cdt.managedbuilder.internal.macros.BuildMacroProvider;
|
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.cdt.ui.newui.PageLayout;
|
||||||
import org.eclipse.core.resources.IResource;
|
import org.eclipse.core.resources.IResource;
|
||||||
import org.eclipse.jface.preference.IPreferencePageContainer;
|
import org.eclipse.jface.preference.IPreferencePageContainer;
|
||||||
|
@ -122,7 +121,7 @@ public class ToolSettingsTab extends AbstractCBuildPropertyTab implements IPrefe
|
||||||
private int calcExtra() {
|
private int calcExtra() {
|
||||||
int x = optionList.getTree().getBorderWidth() * 2;
|
int x = optionList.getTree().getBorderWidth() * 2;
|
||||||
ScrollBar sb = optionList.getTree().getVerticalBar();
|
ScrollBar sb = optionList.getTree().getVerticalBar();
|
||||||
if (sb != null) x += sb.getSize().x;
|
if (sb != null && sb.isVisible()) x += sb.getSize().x;
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -392,13 +391,6 @@ public class ToolSettingsTab extends AbstractCBuildPropertyTab implements IPrefe
|
||||||
} else {
|
} else {
|
||||||
displayOptionsForTool(toolListElement);
|
displayOptionsForTool(toolListElement);
|
||||||
}
|
}
|
||||||
|
|
||||||
ScrollBar sb = containerSC.getHorizontalBar();
|
|
||||||
if (sb != null && sb.isVisible()) {
|
|
||||||
settingsPageContainer.pack(true);
|
|
||||||
containerSC.setMinSize(settingsPageContainer.getSize());
|
|
||||||
((AbstractPage)page).resize();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue