Menu

#8 resizeColumnOptimal: Does not account for multi-line data.

open-later
nobody
None
5
2006-04-15
2005-10-04
No

When I double click in the resize area the rendering does
not take into account multiple lines of data. For example,
if I had

---------------+
My Name |
Is Greg |
---------------+

in a cell then the rendering for an "auto-fit" does not
take the
"Is Greg" part of the data into account. It only
"auto-fits" based
on the "My Name" part.

Greg

Discussion

  • Gregory Pierce

    Gregory Pierce - 2005-10-06

    Logged In: YES
    user_id=799736

    Hi,

    I discovered that the optimal width of a cell is working
    correctly. It's
    the small block of code that inserts "..." and/or truncates
    the string
    based on some cut off calculation that causes this to not work.

    Basically, to make the table more Excel like I would suggest
    removing
    the section of code which inserts "..." and truncates based on
    a cut off calculation. I did this myself and the results are
    much
    better and the "auto-fit" works fine.

    Greg

     
  • Lorenz Maierhofer

    • status: open --> open-later
     

Log in to post a comment.