diff options
-rwxr-xr-x | eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/PaletteControl.java | 6 |
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); |