cvs: pear /Structures_DataGrid/DataGrid/Renderer HTMLTable.php
| From: | Mark Wiesemann | Date: | Fri, 07 Apr 2006 22:02:48 +0000 |
| Subject: | cvs: pear /Structures_DataGrid/DataGrid/Renderer HTMLTable.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-39476@lists.php.net to get a copy of this message | ||
wiesemann Fri Apr 7 22:02:48 2006 UTC
Modified files:
/pear/Structures_DataGrid/DataGrid/Renderer HTMLTable.php
Log:
- Set the header row attributes in each cell (<th>) and not in the
row tag (<tr>). Otherwise the column attributes would overwrite
the header attributes (e.g.: you want to have right-aligned body
cells* but left-aligned header cells).
(*: cells for that the automatic numerical detection don't work)
# Anybody seeing problems with this change?
http://cvs.php.net/viewcvs.cgi/pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php?r1=1.100&r2=1.101&diff_format=u
Index: pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php
diff -u pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.100
pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.101
--- pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.100 Mon Apr 3 08:29:25 2006
+++ pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php Fri Apr 7 22:02:48 2006
@@ -18,7 +18,7 @@
// | Mark Wiesemann <wiesemann@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: HTMLTable.php,v 1.100 2006/04/03 08:29:25 wiesemann Exp $
+// $Id: HTMLTable.php,v 1.101 2006/04/07 22:02:48 wiesemann Exp $
require_once 'Structures/DataGrid/Renderer.php';
require_once 'HTML/Table.php';
@@ -51,7 +51,7 @@
* - sortingResetsPaging: whether sorting HTTP queries reset paging
* (default : true)
*
- * @version $Revision: 1.100 $
+ * @version $Revision: 1.101 $
* @author Andrew S. Nagy <asnagy@webitecture.org>
* @author Olivier Guilyardi <olivier@samalyse.com>
* @author Mark Wiesemann <wiesemann@php.net>
@@ -390,7 +390,7 @@
}
}
if (count($this->_options['headerAttributes']) > 0) {
- $this->_tableHeader->setRowAttributes($row,
$this->_options['headerAttributes'], true);
+ $this->_tableHeader->setRowAttributes($row,
$this->_options['headerAttributes'], false);
}
}