summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-04-22 06:29:19 (EDT)
committer Steffen Pingel2012-04-22 07:14:57 (EDT)
commitc15becf2347c94ec1c5ed151b64549423521091d (patch)
tree17d5c7000ae967331f923ea9137b8160b92d7582
parent5187af40774c91900bebc774c60d11f94cc1188f (diff)
downloadorg.eclipse.mylyn.tasks-c15becf2347c94ec1c5ed151b64549423521091d.zip
org.eclipse.mylyn.tasks-c15becf2347c94ec1c5ed151b64549423521091d.tar.gz
org.eclipse.mylyn.tasks-c15becf2347c94ec1c5ed151b64549423521091d.tar.bz2
NEW - bug 374776: Local task with very long URL in Attributes section
adds confusing horizontal scrollbar https://bugs.eclipse.org/bugs/show_bug.cgi?id=374776 Change-Id: Ibeeca76f8ffde6bc9af5a600507a6d246448701f
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AttributePart.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AttributePart.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AttributePart.java
index 2e1587c..1f46144 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AttributePart.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AttributePart.java
@@ -115,7 +115,10 @@ public class AttributePart extends AbstractLocalEditorPart {
urlLayout.verticalSpacing = 0;
urlLayout.marginWidth = 1;
urlComposite.setLayout(urlLayout);
- GridDataFactory.fillDefaults().grab(true, false).applyTo(urlComposite);
+ GridDataFactory.fillDefaults()
+ .grab(true, false)
+ .hint(EditorUtil.MAXIMUM_WIDTH, SWT.DEFAULT)
+ .applyTo(urlComposite);
urlEditor = new RichTextEditor(getRepository(), SWT.FLAT | SWT.SINGLE, null, null, getTask()) {
@Override