]> git.llucax.com Git - mecon/meconlib.git/blobdiff - lib/MECON/HTML/Tabla.php
BugFix
[mecon/meconlib.git] / lib / MECON / HTML / Tabla.php
index d12cacfb9d15bdcf8eb78faf744131dd69c951a8..cd1489624d59012fd6839bd040f92a13ca5f002b 100644 (file)
@@ -74,9 +74,6 @@ class MECON_HTML_Tabla extends HTML_Table {
             if (isset($attrs['width'])) {
                 $this->_attrs['width'] = $attrs['width'];
             }
             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'];
             }
             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);
             }            
         }        
         $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');
         } 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()),
             $this->updateAttributes(array('width' => '100%'));
             $tabla_externa =  new HTML_Table($contenedora);
             $tabla_externa->addRow(array(parent::toHtml()),