X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/6e11ec23d5aa6e7de4292bf176be4e139b416dc7..1d3c53baf8ad9cbd840eda961b507160e307c2b8:/lib/MECON/HTML/Tabla.php?ds=inline diff --git a/lib/MECON/HTML/Tabla.php b/lib/MECON/HTML/Tabla.php index d12cacf..cd14896 100644 --- a/lib/MECON/HTML/Tabla.php +++ b/lib/MECON/HTML/Tabla.php @@ -74,9 +74,6 @@ class MECON_HTML_Tabla extends HTML_Table { if (isset($attrs['width'])) { $this->_attrs['width'] = $attrs['width']; } - if (isset($attrs['align'])) { - $this->_attrs['align'] = $attrs['align']; - } if (isset($attrs['bgcolor'])) { $this->_attrs['bgcolor'] = $attrs['bgcolor']; } @@ -88,6 +85,10 @@ class MECON_HTML_Tabla extends HTML_Table { } } $this->HTML_Table($this->_attrs); + if (isset($attrs['align'])) { + $this->_attrs['align'] = $attrs['align']; + } + } /** @@ -266,7 +267,7 @@ class MECON_HTML_Tabla extends HTML_Table { } else { $contenedora = $this->_conf['atributos']['tabla_contenedora']; $contenedora['width'] = $this->getAttribute('width'); - $contenedora['align'] = $this->getAttribute('align'); + $contenedora['align'] = $this->_attrs['align']; $this->updateAttributes(array('width' => '100%')); $tabla_externa = new HTML_Table($contenedora); $tabla_externa->addRow(array(parent::toHtml()),