aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2013-02-07 12:29:48 (EST)
committerLakshmi Shanmugam2013-02-28 03:25:54 (EST)
commit88d896845ab46c2b63185bf7b1aba3dec70427bf (patch)
treef3524f67da7e386eb23d546cb65e56a88ebeec57
parent0529374a00bde602ded42473d0d9b18223c081a4 (diff)
downloadeclipse.platform.swt-88d896845ab46c2b63185bf7b1aba3dec70427bf.zip
eclipse.platform.swt-88d896845ab46c2b63185bf7b1aba3dec70427bf.tar.gz
eclipse.platform.swt-88d896845ab46c2b63185bf7b1aba3dec70427bf.tar.bz2
Bug 234649 - Composite with scrollbar won't inherit background from
"themed" ancestor (tabfolder)
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java
index d1a6cf1..632a44a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java
@@ -306,7 +306,7 @@ public Point computeSize (int wHint, int hHint, boolean changed) {
void createHandle () {
super.createHandle ();
state |= CANVAS;
- if ((style & (SWT.H_SCROLL | SWT.V_SCROLL)) == 0) {
+ if ((style & (SWT.H_SCROLL | SWT.V_SCROLL)) == 0 || findThemeControl () == parent) {
state |= THEME_BACKGROUND;
}
if ((style & SWT.TRANSPARENT) != 0) {