@@ 107-109 (lines=3) @@ | ||
104 | public function setRowsCount($rowsCount, $colsCount=NULL, $force=false) { |
|
105 | $count=$this->count(); |
|
106 | if ($rowsCount < 2 && $force === false) { |
|
107 | for($i=$count; $i < $colsCount; $i++) { |
|
108 | $this->addItem(new HtmlGridCol("col-" . $this->identifier . "-" . $i)); |
|
109 | } |
|
110 | } else { |
|
111 | if ($this->hasOnlyCols($count)) { |
|
112 | $tmpContent=$this->content; |
|
@@ 143-145 (lines=3) @@ | ||
140 | if ($toCreate == true) { |
|
141 | $count=$this->count(); |
|
142 | if ($count == 0 || $this->hasOnlyCols($count)) { |
|
143 | for($i=$count; $i < $numCols; $i++) { |
|
144 | $this->addItem(new HtmlGridCol("col-" . $this->identifier . "-" . $i, $width)); |
|
145 | } |
|
146 | } else { |
|
147 | for($i=0; $i < $count; $i++) { |
|
148 | $this->getItem($i)->setColsCount($numCols); |