aboutsummaryrefslogtreecommitdiffstats
path: root/eclipse
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2012-02-27 10:08:00 -0800
committerTor Norbye <tnorbye@google.com>2012-02-27 10:08:00 -0800
commita887e2d2023da16d3f38ea6d8066b08e8e0dd4de (patch)
tree42797e854a34b8e8fda895c0c58dcd692bfc0ecd /eclipse
parent9109f4c300ac241beaa6adec77844b81e8fc2552 (diff)
downloadsdk-a887e2d2023da16d3f38ea6d8066b08e8e0dd4de.zip
sdk-a887e2d2023da16d3f38ea6d8066b08e8e0dd4de.tar.gz
sdk-a887e2d2023da16d3f38ea6d8066b08e8e0dd4de.tar.bz2
17467: Display update problem for Custom & Library View
Change-Id: Ic64930c80777d7ecdedfebcbac87a4fa919e6937
Diffstat (limited to 'eclipse')
-rwxr-xr-xeclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/PaletteControl.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/PaletteControl.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/PaletteControl.java
index 9ffe095..d35037a 100755
--- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/PaletteControl.java
+++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/PaletteControl.java
@@ -485,8 +485,10 @@ public class PaletteControl extends Composite {
if (mPaletteMode.isPreview() && mBackground != null) {
wrapper.setBackground(mBackground);
}
- composite = super.createChildContainer(wrapper, header,
- style | SWT.NO_BACKGROUND);
+ composite = super.createChildContainer(wrapper, header, style);
+ if (mBackground != null) {
+ composite.setBackground(mBackground);
+ }
composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
Button refreshButton = new Button(wrapper, SWT.PUSH | SWT.FLAT);