|
@@ 43-45 (lines=3) @@
|
| 40 |
|
|
| 41 |
|
public function setRowspan($rowspan) { |
| 42 |
|
$to=min($this->_container->count(), $this->_row + $rowspan - 1); |
| 43 |
|
for($i=$to; $i > $this->_row; $i--) { |
| 44 |
|
$this->_container->delete($i, $this->_col); |
| 45 |
|
} |
| 46 |
|
$this->setProperty("rowspan", $rowspan); |
| 47 |
|
return $this->_container; |
| 48 |
|
} |
|
@@ 60-62 (lines=3) @@
|
| 57 |
|
|
| 58 |
|
public function setColspan($colspan) { |
| 59 |
|
$to=min($this->_container->getRow($this->_row)->count(), $this->_col + $colspan - 1); |
| 60 |
|
for($i=$to; $i > $this->_col; $i--) { |
| 61 |
|
$this->_container->delete($this->_row, $this->_col + 1); |
| 62 |
|
} |
| 63 |
|
$this->setProperty("colspan", $colspan); |
| 64 |
|
return $this->_container; |
| 65 |
|
} |