diff options
| author | Kevin Sawicki | 2011-04-13 03:03:32 +0000 |
|---|---|---|
| committer | Chris Aniszczyk | 2011-04-14 01:41:30 +0000 |
| commit | 2e06dd3d97ea78bfc8e9c3047bd9b3b5d350c898 (patch) | |
| tree | 1178bc7eabaa13ad58665a272baff94fd329d19c | |
| parent | 79c94501371f4955f54ed973dd828ba8d32c0ce5 (diff) | |
| download | egit-github-2e06dd3d97ea78bfc8e9c3047bd9b3b5d350c898.tar.gz egit-github-2e06dd3d97ea78bfc8e9c3047bd9b3b5d350c898.tar.xz egit-github-2e06dd3d97ea78bfc8e9c3047bd9b3b5d350c898.zip | |
Don't update exclude field in composite's grid data
Avatar label now correctly redraws in task editor
when assignee is added after being initially empty.
Change-Id: I44964eccbc25558336f8c4d6d2d5f45d8412211f
Signed-off-by: Kevin Sawicki <kevin@github.com>
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
| -rw-r--r-- | org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/AvatarLabel.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/AvatarLabel.java b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/AvatarLabel.java index 924b5330..75f045b3 100644 --- a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/AvatarLabel.java +++ b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/github/ui/internal/AvatarLabel.java @@ -20,7 +20,6 @@ import org.eclipse.swt.events.DisposeEvent; import org.eclipse.swt.events.DisposeListener; import org.eclipse.swt.graphics.Image; import org.eclipse.swt.graphics.ImageData; -import org.eclipse.swt.layout.GridData; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Label; import org.eclipse.ui.PlatformUI; @@ -64,11 +63,8 @@ public class AvatarLabel implements IAvatarCallback { * @return this label */ public AvatarLabel setVisible(boolean visible) { - if (!displayArea.isDisposed()) { + if (!displayArea.isDisposed()) displayArea.setVisible(visible); - ((GridData) displayArea.getLayoutData()).exclude = !visible; - displayArea.getParent().getParent().layout(true, true); - } return this; } @@ -79,7 +75,7 @@ public class AvatarLabel implements IAvatarCallback { */ public AvatarLabel layout() { if (!displayArea.isDisposed()) - displayArea.getParent().layout(true, true); + displayArea.getParent().getParent().layout(true, true); return this; } |
