PHP Classes

auto column widths

Recommend this page to a friend!

      DrasticTools  >  All threads  >  auto column widths  >  (Un) Subscribe thread alerts  
Subject:auto column widths
Summary:Any way to make the column widths adjust to the data
Messages:2
Author:Layne Albert
Date:2007-02-20 22:19:13
Update:2007-02-22 08:13:41
 

  1. auto column widths   Reply   Report abuse  
Picture of Layne Albert Layne Albert - 2007-02-20 22:19:13
I just found this tool today and it is excellent. The only drawback I'm having is that the column widths seem fixed and unable to fit themselves to the data. I've tried different tweaks to the source but to no avail. Anyone have an idea of how to do this?

  2. Re: auto column widths   Reply   Report abuse  
Picture of dd dd - 2007-02-22 08:13:41 - In reply to message 1 from Layne Albert
Hi Layne,

Earlier versions of MySQLPHPGrid didn't use a fixed width layout and the grid automatically decided the column width (based on browser algorithm). In that situation, the width of columns changed when going to the next or previous page (because it depends on the actual length of the strings in those records). Therefore, the grid now uses a fixed width layout.

If you really want the old behavior, you could remove the table-layout fixed line from the css file.

regards,
Olav