mergeBelow : function()
{
var table = this.toTableArray();
- if (typeof(table[this.cellData.row+1]) == 'undefined') {
+ if (typeof(table[this.cellData.row+this.cellData.rowspan]) == 'undefined') {
return; // no row below
}
- if (typeof(table[this.cellData.row+1][this.cellData.col]) == 'undefined') {
+ if (typeof(table[this.cellData.row+this.cellData.rowspan][this.cellData.col]) == 'undefined') {
return; // nothing right?
}
- var rc = table[this.cellData.row+1][this.cellData.col];
+ var rc = table[this.cellData.row+this.cellData.rowspan][this.cellData.col];
if (rc.colspan != this.cellData.colspan || rc.col != this.cellData.col) {
return; // right hand side is not same rowspan.