Hi,
My Grid cell data is not wrapping even though "wrap: true" is added into <text> element.
Any Idea why this is happening?
code
CODE
createView: function() {
this.controls.listGrid = new KONtx.control.Grid({
columns: 1,
rows: this.config.visibleRows,
carousel: true,
cellCreator: this._cellCreator,
cellUpdater: this._cellUpdater,
styles: {
vOffset: backButton.outerHeight,
width: this.width,
height: buttonHeight * this.config.visibleRows
},
wrap: true,
manageWaitIndicator: true
}).appendTo(this);
}
_cellCreator: function() {
var cell = new KONtx.control.GridCell({
wrap: true,
styles: {
height: KONtx.utility.scale(35),
width: this.width,
},
events: {
//some events
}
}
});
cell.textLabel = new KONtx.element.Text({
[size="5"][b]wrap: true,[/b][/size]
styles: {
color: '#FFFFFF',
fontSize: KONtx.utility.scale(15),
hAlign: 'left',
vAlign: 'left',
}
}).appendTo(cell);
return cell;
},