Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Furnadjiev2017-02-06 10:07:42 +0000
committerIvan Furnadjiev2017-02-06 10:07:42 +0000
commitab0a9f526884343c28b72a7926dcefaac0242b73 (patch)
tree87ffbbab36a84985f64ce6283ae8289b8e0e699c
parent08d6451f1e73a173c24964215d5d2c6209161edd (diff)
downloadorg.eclipse.rap-ab0a9f526884343c28b72a7926dcefaac0242b73.tar.gz
org.eclipse.rap-ab0a9f526884343c28b72a7926dcefaac0242b73.tar.xz
org.eclipse.rap-ab0a9f526884343c28b72a7926dcefaac0242b73.zip
Ensure that the Grid custom variant is applied to the cell padding
-rw-r--r--bundles/org.eclipse.rap.rwt/js/rwt/widgets/util/GridRowLayout.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/bundles/org.eclipse.rap.rwt/js/rwt/widgets/util/GridRowLayout.js b/bundles/org.eclipse.rap.rwt/js/rwt/widgets/util/GridRowLayout.js
index 75e392c866..85c8a1ace1 100644
--- a/bundles/org.eclipse.rap.rwt/js/rwt/widgets/util/GridRowLayout.js
+++ b/bundles/org.eclipse.rap.rwt/js/rwt/widgets/util/GridRowLayout.js
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2014, 2015 EclipseSource and others.
+ * Copyright (c) 2014, 2017 EclipseSource and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -35,7 +35,11 @@ rwt.widgets.util.GridRowLayout.prototype._computeIndention = function() {
rwt.widgets.util.GridRowLayout.prototype._computeCellPadding = function() {
var manager = rwt.theme.AppearanceManager.getInstance();
- this.cellPadding = manager.styleFrom( this._gridConfig.baseAppearance + "-cell", {} ).padding;
+ var states = {};
+ if( this._gridConfig.variant ) {
+ states[ this._gridConfig.variant ] = true;
+ }
+ this.cellPadding = manager.styleFrom( this._gridConfig.baseAppearance + "-cell", states ).padding;
};
rwt.widgets.util.GridRowLayout.prototype._computeAllCells = function() {

Back to the top