Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » How to get preferred size for a custom cell correctly?
How to get preferred size for a custom cell correctly? [message #1005736] Mon, 28 January 2013 08:24 Go to previous message
Alex Kipling is currently offline Alex Kipling
Messages: 211
Registered: July 2012
Senior Member
For getting a preferred size of a cell - I am doing:
ILayerCell cell = natTable.getCellByPosition(colIndex, rowIndex);

ICellPainter cellPainter = natTable.getCellPainter(colIndex, rowIndex, cell, configRegistry);
int preferredColWidth = cellPainter.getPreferredWidth(cell, gc, configRegistry);


This returnes another values, than the values which I get, when doubleclicking the cell border.

How do I get the correct preferred cell width?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:The ICellEditor is never triggered?
Next Topic:Updating a single row?
Goto Forum:
  


Current Time: Fri May 24 01:56:24 EDT 2013

Powered by FUDForum. Page generated in 0.06675 seconds