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