Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2011-10-28 13:08:24 +0000
committerSteffen Pingel2011-10-28 13:08:24 +0000
commitaa897429c6f89c872ffc23c8a69d4ccd42b63250 (patch)
tree3902ce49681d64f1892334698cd28c485db32e92
parentac8d724380ad15e78741420145bf7317c3cc15a8 (diff)
downloadorg.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
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskAttachmentPage.java11
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);

Back to the top