Fixing wide table with too many columns when used with user_mailman_register
anoopjohn - December 30, 2008 - 19:20
| Project: | Mailman Manager |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | anoopjohn |
| Status: | closed |
Description
When this module is used with user mailman register, the increased number of columns in the table causes the table to grow very wide. Another problem with this is that user_mailman_register introduces the description which is a very long text field which when presented in a narrow column causes the row height to become very large, making the whole table look ugly. This can be fixed by explicitly selecting the required fields - lid, name and command.

#1
I am attaching a patch for this issue, please review and use
#2
The table also lacked the empty header declarations and I missed to add it.
Please add
at line 397
array('data' => NULL),array('data' => NULL),
so that the header declaration in function _mailman_manager_admin_display() becomes
$headers = array(array('data' => t('ID'), 'field' => 'lid', 'sort' => 'asc'),array('data' => t('Name'), 'field' => 'name'),
array('data' => t('Request Address'), 'field' => 'command'),
array('data' => NULL),
array('data' => NULL),
);
If the empty headers are not present and when there are more than one row in the table and when you scroll the page floating headers will not get correctly aligned to the columns.
#3
In late, but finally commited ;-)
Thanks
#4
Automatically closed -- issue fixed for 2 weeks with no activity.