Skip to main content
diff options
authorIvan Furnadjiev2016-11-29 14:18:35 +0000
committerIvan Furnadjiev2016-11-29 14:18:35 +0000
commite15b734d14fde4b480f2c3c575ec546790799cca (patch)
tree7fcf319d485fc2f1a42f7c2cec8e585496cc46d4 /bundles
parente0dd8c88eaa7f18355904094b5ff801f19528f4e (diff)
Fix columns not shown in DropDown
This regression has been introduced with commit cfe70d8069207475927824a4241f8878f9cbe2a4. GridRow renders column cell labels only if their width is greater than 0. To compute the cellWidth a valid cellOrder config property is needed. DropDown manually creates the grid config cellOrder property in DropDown#setColumns function, but it is overrided in Grid#_updateColumns when Grid#flushWidgetQueue is called. Replace Grid#setColumnOrder function with empty implementation in DropDown#setColumns to protect the manually created grid config cellOrder property. 508049: [AutoSuggest] No columns shown in AutoSuggest with ColumnDataProvider Change-Id: Ie1e98f0f62f1c5e50f8bb6a1f902dbe7ed13d332
Diffstat (limited to 'bundles')
1 files changed, 1 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 23e2c9df91..a4e0008179 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,7 @@
setColumns : function( columns ) {
this._.columns = columns;
this._.grid.setColumnCount( columns.length );
+ this._.grid.setColumnOrder = function() {};
var config = this._.grid.getRenderConfig();
config.cellOrder = new Array( columns.length );
for( var i = 0; i < columns.length; i++ ) {

Back to the top