- $tabla_externa = new HTML_Table($this->_conf['atributos']['tabla_contenedora']);
- $tabla_externa->setCellContents(0,0,parent::toHtml(),$this->_conf['atributos']['celda_comun']);
- return $tabla_externa->toHtml();
+ if ($doble == 0 ) {
+ $tmp = $this->_parseAttributes($this->_conf['atributos']['tabla_contenedora']);
+ $tmp['width'] = $this->_atribTabla['width'];
+ $tabla_externa = new HTML_Table($tmp);
+ $tabla_externa->setCellContents(0,0,parent::toHtml(),$this->_conf['atributos']['celda_comun']);
+ $result = $tabla_externa->toHtml();
+ }
+ else {
+ $result = parent::toHtml();
+ }
+
+ return $result;