Add column alignment in nm

This commit is contained in:
Nathan Gray 2012-03-28 19:00:12 +00:00
parent d61a9f4a69
commit 47a2858f7a
2 changed files with 10 additions and 0 deletions

View File

@ -529,6 +529,11 @@ var et2_nextmatch = et2_DOMWidget.extend(et2_IResizeable, {
{
columnWidgets[x] = _row[x].widget;
}
// Pass along column alignment
if(_row[x].align)
{
columnWidgets[x].align = _row[x].align;
}
}
this.rowProvider.setDataRowTemplate(columnWidgets, _rowData, this);

View File

@ -446,6 +446,11 @@ var et2_nextmatch_rowWidget = et2_widget.extend(et2_IDOMNode, {
{
this._widgets[i] = _widgets[i].clone(this);
this._widgets[i].loadingFinished();
// Set column alignment from widget
if(this._widgets[i].align)
{
this._row.childNodes[i].align = this._widgets[i].align;
}
}
},