Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Furnadjiev2020-10-21 12:59:27 +0000
committerIvan Furnadjiev2020-10-21 12:59:27 +0000
commitb77fa5dad167032b41ee47b5764da7d77d1e4d66 (patch)
tree8109a9a31db72ea9d97949b32ec4166854ed8306
parentdc27a0597a80e34126a7edb2c48828317407d986 (diff)
downloadorg.eclipse.rap-master.tar.gz
org.eclipse.rap-master.tar.xz
org.eclipse.rap-master.zip
Always create cell background element when cell selection is enabledHEADmaster
Cell selection relies on background div element (data-cell-index attribute) to determine the column index. Without it selection by mouse is not working when grid lines are not visible and cell is empty. Change-Id: I9b83c5f32fe2792a98125876a800b7c0f4c83608
-rw-r--r--bundles/org.eclipse.rap.rwt/js/rwt/widgets/base/GridRow.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.rap.rwt/js/rwt/widgets/base/GridRow.js b/bundles/org.eclipse.rap.rwt/js/rwt/widgets/base/GridRow.js
index d770bb6886..6ce0d5ec59 100644
--- a/bundles/org.eclipse.rap.rwt/js/rwt/widgets/base/GridRow.js
+++ b/bundles/org.eclipse.rap.rwt/js/rwt/widgets/base/GridRow.js
@@ -442,7 +442,10 @@ rwt.qx.Class.define( "rwt.widgets.base.GridRow", {
"backgroundColor" : background,
"opacity" : ""
} );
- } else if( this.$cellBackgrounds[ cell ] || this._gridLines.vertical ) {
+ } else if( this.$cellBackgrounds[ cell ]
+ || this._gridLines.vertical
+ || this._gridConfig.cellSelection )
+ {
this._getCellBackgroundElement( cell ).css( {
"backgroundColor" : "",
"opacity" : ""

Back to the top