Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Furnadjiev2016-05-03 14:06:37 -0400
committerGerrit Code Review @ Eclipse.org2016-05-03 14:41:20 -0400
commit6b3ace334709c99950ea39250743e8344223f491 (patch)
treeeb77fea048e3d46f6af5165bcc8a66184f28291d /bundles
parenta5d1aa63ebdec6ccf2b85e48db72cbc4123baa32 (diff)
downloadorg.eclipse.rap-6b3ace334709c99950ea39250743e8344223f491.tar.gz
org.eclipse.rap-6b3ace334709c99950ea39250743e8344223f491.tar.xz
org.eclipse.rap-6b3ace334709c99950ea39250743e8344223f491.zip
Fix missing data when columns are used in DropDown3.1.0-M7
In order to render the text in GridRow cell, cellOrder property must me set in the Grid config (see GridRowLayout#_computeAllCells). Otherwize, only the text for the first column is shown. Add cellOrder property to Grid config when columns are set on DropDown. Change-Id: I23badf47b05ac0e775ff0f03cda5e7be95f73780
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.rap.rwt/js/rwt/widgets/DropDown.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/org.eclipse.rap.rwt/js/rwt/widgets/DropDown.js b/bundles/org.eclipse.rap.rwt/js/rwt/widgets/DropDown.js
index 397e78d0c3..7f4316e9b1 100644
--- a/bundles/org.eclipse.rap.rwt/js/rwt/widgets/DropDown.js
+++ b/bundles/org.eclipse.rap.rwt/js/rwt/widgets/DropDown.js
@@ -232,6 +232,11 @@
setColumns : function( columns ) {
this._.columns = columns;
this._.grid.setColumnCount( columns.length );
+ var config = this._.grid.getRenderConfig();
+ config.cellOrder = new Array( columns.length );
+ for( var i = 0; i < columns.length; i++ ) {
+ config.cellOrder[ i ] = i;
+ }
renderGridItems.call( this );
if( this._.grid.isSeeable() ) {
renderLayout.call( this );

Back to the top