Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Furnadjiev2016-11-10 10:03:41 +0000
committerIvan Furnadjiev2016-11-10 10:03:41 +0000
commit75d863544644b5702407d3706133e8a439a515de (patch)
tree8f6a304a89148fe64b70ea14f07c40f594a7a018 /bundles
parent6c7eb6fd0674bb6f77d94fadd45f5488dc359539 (diff)
downloadorg.eclipse.rap-75d863544644b5702407d3706133e8a439a515de.tar.gz
org.eclipse.rap-75d863544644b5702407d3706133e8a439a515de.tar.xz
org.eclipse.rap-75d863544644b5702407d3706133e8a439a515de.zip
Fix Control layout when padding is set with custom variant
The control padding set by the themeing is buffered in the Control calss. The buffered value must be reset when custom variant is applied on the control. Change-Id: I62a6e88fff5d25b6dc41e484b5c3b088a581d9cf
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/widgets/Control.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/widgets/Control.java
index f712e75336..73c8feb945 100644
--- a/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/widgets/Control.java
@@ -2516,6 +2516,9 @@ public abstract class Control extends Widget implements Drawable {
}
ActiveKeysUtil.preserveCancelKeys( this );
}
+ if( RWT.CUSTOM_VARIANT.equals( key ) ) {
+ bufferedPadding = null;
+ }
super.setData( key, value );
}

Back to the top