From 1e12d459190a0920415d1f2a66739e098cd2786d Mon Sep 17 00:00:00 2001 From: Sean Evoy Date: Wed, 21 Jul 2004 19:59:45 +0000 Subject: [PATCH] Commit for Tanya -- fix for bugzilla 70217, a problem where long labels on a section of the build property page were overlapping the selection widget --- build/org.eclipse.cdt.managedbuilder.ui/ChangeLog | 4 ++++ .../cdt/managedbuilder/ui/properties/BuildPropertyPage.java | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/build/org.eclipse.cdt.managedbuilder.ui/ChangeLog b/build/org.eclipse.cdt.managedbuilder.ui/ChangeLog index c284f82255d..2775946dbd2 100644 --- a/build/org.eclipse.cdt.managedbuilder.ui/ChangeLog +++ b/build/org.eclipse.cdt.managedbuilder.ui/ChangeLog @@ -1,3 +1,7 @@ +2004-07-21 Tanya Wolff + Fix for 70217: C++ Build Properties view: Platform overlaps field + * src/org/eclipse/cdt/managedbuilder/ui/properties/BuildPropertyPage.java + 2004-06-15 Tanya Wolff Removed intermediate composites to allow groupings to be readable by screenreader in the Manage Configuration dialog. diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildPropertyPage.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildPropertyPage.java index ad3cb49906e..bcecbe7b6e7 100644 --- a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildPropertyPage.java +++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildPropertyPage.java @@ -240,9 +240,10 @@ public class BuildPropertyPage extends PropertyPage implements IWorkbenchPropert fd.top = new FormAttachment(configSelector, 0, SWT.CENTER); fd.right = new FormAttachment(100,0); manageConfigs.setLayoutData(fd); - // Anchor config combo left 5 pixels from label, top 5% below the centre, and right to the button + // Anchor config combo left 5 pixels from longest label, top 5% below the centre, and right to the button + Label longestLabel = (platformLabel.getText().length()>configLabel.getText().length()?platformLabel:configLabel); fd = new FormData(); - fd.left = new FormAttachment(configLabel, 5); + fd.left = new FormAttachment(longestLabel, 5); fd.top = new FormAttachment(55,0); fd.right = new FormAttachment(manageConfigs, -5 , SWT.LEFT); configSelector.setLayoutData(fd);