diff options
author | Tomasz Zarna | 2011-10-28 13:08:24 +0000 |
---|---|---|
committer | Steffen Pingel | 2011-10-28 13:08:24 +0000 |
commit | aa897429c6f89c872ffc23c8a69d4ccd42b63250 (patch) | |
tree | 3902ce49681d64f1892334698cd28c485db32e92 /org.eclipse.mylyn.bugzilla.ui/src | |
parent | ac8d724380ad15e78741420145bf7317c3cc15a8 (diff) | |
download | org.eclipse.mylyn.tasks-aa897429c6f89c872ffc23c8a69d4ccd42b63250.tar.gz org.eclipse.mylyn.tasks-aa897429c6f89c872ffc23c8a69d4ccd42b63250.tar.xz org.eclipse.mylyn.tasks-aa897429c6f89c872ffc23c8a69d4ccd42b63250.zip |
NEW - bug 361536: avoid nested scrollbars when expanding "Advanced"
section when adding an attachment with long comment
https://bugs.eclipse.org/bugs/show_bug.cgi?id=361536
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui/src')
-rw-r--r-- | org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskAttachmentPage.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskAttachmentPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskAttachmentPage.java index c1305221d..6725302b9 100644 --- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskAttachmentPage.java +++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskAttachmentPage.java @@ -7,6 +7,7 @@ * * Contributors: * Tasktop Technologies - initial API and implementation + * Tomasz Zarna <tzarna@gmail.com> - bug 361536 *******************************************************************************/ package org.eclipse.mylyn.internal.bugzilla.ui.tasklist; @@ -20,12 +21,12 @@ import org.eclipse.mylyn.internal.bugzilla.core.BugzillaFlag; import org.eclipse.mylyn.internal.bugzilla.core.BugzillaFlagMapper; import org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector; import org.eclipse.mylyn.internal.bugzilla.core.RepositoryConfiguration; +import org.eclipse.mylyn.internal.commons.ui.SectionComposite; import org.eclipse.mylyn.tasks.core.data.TaskAttachmentModel; import org.eclipse.mylyn.tasks.core.data.TaskAttribute; import org.eclipse.mylyn.tasks.ui.TasksUi; import org.eclipse.mylyn.tasks.ui.wizards.TaskAttachmentPage; import org.eclipse.swt.SWT; -import org.eclipse.swt.custom.ScrolledComposite; import org.eclipse.swt.events.ModifyEvent; import org.eclipse.swt.events.ModifyListener; import org.eclipse.swt.events.SelectionEvent; @@ -58,7 +59,7 @@ public class BugzillaTaskAttachmentPage extends TaskAttachmentPage { private Composite flagScrollComposite; - private ScrolledComposite scrolledComposite; + private SectionComposite scrolledComposite; private Composite scrolledBodyComposite; @@ -81,15 +82,13 @@ public class BugzillaTaskAttachmentPage extends TaskAttachmentPage { } private void createScrolledComposite(Composite parent) { - scrolledComposite = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL /*| SWT.BORDER*/) { + scrolledComposite = new SectionComposite(parent, SWT.NONE) { @Override public Point computeSize(int hint, int hint2, boolean changed) { return new Point(64, 64); } }; - scrolledComposite.setExpandHorizontal(true); - scrolledComposite.setExpandVertical(true); - scrolledBodyComposite = new Composite(scrolledComposite, SWT.NONE); + scrolledBodyComposite = scrolledComposite.getContent(); scrolledBodyComposite.setLayout(new GridLayout()); scrolledComposite.setContent(scrolledBodyComposite); setControl(scrolledComposite); |