forked from extern/egroupware
Column alignment for grid
This commit is contained in:
parent
a46264ace3
commit
d61a9f4a69
@ -314,6 +314,11 @@ var et2_grid = et2_DOMWidget.extend([et2_IDetachedDOM], {
|
|||||||
|
|
||||||
var span = cell.colSpan = this._forceNumber(cell.colSpan);
|
var span = cell.colSpan = this._forceNumber(cell.colSpan);
|
||||||
|
|
||||||
|
// Read the align value of the element
|
||||||
|
if (node.getAttribute("align"))
|
||||||
|
{
|
||||||
|
cell.align = node.getAttribute("align");
|
||||||
|
}
|
||||||
|
|
||||||
// Create the element
|
// Create the element
|
||||||
var widget = this.createElementFromNode(node, nodeName);
|
var widget = this.createElementFromNode(node, nodeName);
|
||||||
@ -512,6 +517,11 @@ var et2_grid = et2_DOMWidget.extend([et2_IDetachedDOM], {
|
|||||||
td.width(cell.width);
|
td.width(cell.width);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cell.align)
|
||||||
|
{
|
||||||
|
td.attr("align",cell.align);
|
||||||
|
}
|
||||||
|
|
||||||
// Add the entry for the widget to the management array
|
// Add the entry for the widget to the management array
|
||||||
this.managementArray.push({
|
this.managementArray.push({
|
||||||
"cell": td[0],
|
"cell": td[0],
|
||||||
|
Loading…
Reference in New Issue
Block a user