mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-04 07:14:02 +01:00
Consider colspan attributes when adding table cells/rows
This commit is contained in:
@@ -681,9 +681,9 @@ class html_table extends html
|
||||
$cell->content = $cont;
|
||||
|
||||
$this->rows[$this->rowindex]->cells[$this->colindex] = $cell;
|
||||
$this->colindex++;
|
||||
$this->colindex += max(1, intval($attr['colspan']));
|
||||
|
||||
if ($this->attrib['cols'] && $this->colindex == $this->attrib['cols']) {
|
||||
if ($this->attrib['cols'] && $this->colindex >= $this->attrib['cols']) {
|
||||
$this->add_row();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user