Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2012-01-05 18:48:08 -0500
committerSteffen Pingel2012-01-05 18:48:08 -0500
commit73b95b9d13eb50f2f0cc11399eea06a58d2ba7c5 (patch)
treee658349b70830407fe7eb8fcff56b9faa50ab9be /org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks
parent433dbd6f528bec4ff2c42146e625f61d44744491 (diff)
downloadorg.eclipse.mylyn.tasks-73b95b9d13eb50f2f0cc11399eea06a58d2ba7c5.tar.gz
org.eclipse.mylyn.tasks-73b95b9d13eb50f2f0cc11399eea06a58d2ba7c5.tar.xz
org.eclipse.mylyn.tasks-73b95b9d13eb50f2f0cc11399eea06a58d2ba7c5.zip
NEW - bug 349510: [patch] add maximize button to private notes section
https://bugs.eclipse.org/bugs/show_bug.cgi?id=349510
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPart.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPart.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPart.java
index 57316bac5..48053afa8 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPart.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPart.java
@@ -213,11 +213,13 @@ public abstract class AbstractTaskEditorPart extends AbstractFormPart {
@Override
public void run() {
+ if (getControl() instanceof Section && !((Section) getControl()).isExpanded()) {
+ CommonFormUtil.setExpanded((Section) getControl(), true);
+ }
Control control = getLayoutControl();
if (control == null || !(control.getLayoutData() instanceof GridData)) {
return;
}
-
GridData gd = (GridData) control.getLayoutData();
// initialize originalHeight on first invocation
@@ -238,6 +240,9 @@ public abstract class AbstractTaskEditorPart extends AbstractFormPart {
}
gd.heightHint = heightHint;
gd.minimumHeight = heightHint;
+ if (gd.widthHint == -1) {
+ gd.widthHint = 300;// needs to be set or else heightHint is ignored
+ }
getTaskEditorPage().reflow();
CommonFormUtil.ensureVisible(control);

Back to the top