Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » [Grid] DefaultCellRenderer and wordwrap
[Grid] DefaultCellRenderer and wordwrap [message #592339] Thu, 25 September 2008 12:13
Gregory Dyke is currently offline Gregory Dyke
Messages: 8
Registered: July 2009
Junior Member
Hi

I'd like to use Grid/GridViewer to create a table with variable line
heights, with the lines' heights adjusting to show the whole contents of
the line.

When using

gridviewer.setAutoPreferredHeight(true) combined with
column.setWordWrap(true) for each column

I end up with each row being very much too high. I'm using the smallfonts
option running from macosx. Is this a bug? I've looked at the source code:
why doesn't it just call getBounds on the TextLayout object used for
computing row height?

Also, the line height doesn't automatically increase when I make a column
narrower.

Help?

Regards

Greg
Previous Topic:[DateChooser] Custom Colors, and custom selection support patch
Next Topic:[GalleryTreeViewer] Now groups added via refresh() appear collapsed
Goto Forum:
  


Current Time: Sat Aug 23 01:39:06 EDT 2014

Powered by FUDForum. Page generated in 0.01602 seconds