Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2013-02-07 17:29:48 +0000
committerLakshmi Shanmugam2013-02-28 08:25:54 +0000
commit88d896845ab46c2b63185bf7b1aba3dec70427bf (patch)
treef3524f67da7e386eb23d546cb65e56a88ebeec57 /bundles
parent0529374a00bde602ded42473d0d9b18223c081a4 (diff)
downloadeclipse.platform.swt-88d896845ab46c2b63185bf7b1aba3dec70427bf.tar.gz
eclipse.platform.swt-88d896845ab46c2b63185bf7b1aba3dec70427bf.tar.xz
eclipse.platform.swt-88d896845ab46c2b63185bf7b1aba3dec70427bf.zip
Bug 234649 - Composite with scrollbar won't inherit background from
"themed" ancestor (tabfolder)
Diffstat (limited to 'bundles')
-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 d1a6cf1457..632a44a63a 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) {

Back to the top