Andrei
unread,May 9, 2012, 10:13:33 AM5/9/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
If your data never wraps within a cell, then the height of the row is
always the same - it is determined by the CSS. (As a sidenote, you can
change it in your CSS, or even apply different heights to different
tables).
Else,
1. The height changes as data wraps within a cell. Thus, you can't
know the actual height of the row until the table is rendered.
2. If the height changes with data (some rows have longer data and
wrap, other rows don't), what's the point of changing the number of
rows? Your first 10 rows may take 240 pixels, the next 10 rows can
take 330 pixels, and so on.
Also, remember that data can wrap more often when columns are
narrower. This means that if you want to predict the height of your 10
rows, you also need to take into consideration the width of each
column.
3. Users can change the size of the font in their browsers, unless you
disable it, which is not a good practice. They can also resize their
windows, add or hide toolbars in their browsers, etc. You just can't
avoid having a scroll-bar.