Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 167645
Collapse All | Expand All

(-)src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorCommentPart.java (-2 / +9 lines)
Lines 25-30 Link Here
25
import org.eclipse.swt.SWT;
25
import org.eclipse.swt.SWT;
26
import org.eclipse.swt.events.MouseAdapter;
26
import org.eclipse.swt.events.MouseAdapter;
27
import org.eclipse.swt.events.MouseEvent;
27
import org.eclipse.swt.events.MouseEvent;
28
import org.eclipse.swt.graphics.Point;
28
import org.eclipse.swt.layout.GridData;
29
import org.eclipse.swt.layout.GridData;
29
import org.eclipse.swt.layout.GridLayout;
30
import org.eclipse.swt.layout.GridLayout;
30
import org.eclipse.swt.layout.RowLayout;
31
import org.eclipse.swt.layout.RowLayout;
Lines 80-87 Link Here
80
				});
81
				});
81
				composite.setData(KEY_EDITOR, editor);
82
				composite.setData(KEY_EDITOR, editor);
82
83
83
				GridDataFactory.fillDefaults().minSize(EditorUtil.MAXIMUM_WIDTH, 0).hint(EditorUtil.MAXIMUM_WIDTH,
84
				Point size = composite.getSize();
84
						SWT.DEFAULT).applyTo(editor.getControl());
85
86
				if (size.x < EditorUtil.MAXIMUM_WIDTH) {
87
					size.x = EditorUtil.MAXIMUM_WIDTH;
88
				}
89
90
				GridDataFactory.fillDefaults().minSize(EditorUtil.MAXIMUM_WIDTH, 0).hint(size.x, SWT.DEFAULT).applyTo(
91
						editor.getControl());
85
92
86
				getTaskEditorPage().getAttributeEditorToolkit().adapt(editor);
93
				getTaskEditorPage().getAttributeEditorToolkit().adapt(editor);
87
				getTaskEditorPage().reflow();
94
				getTaskEditorPage().reflow();

Return to bug 167645