|
|
Re: Grid - Cell Height [message #20439 is a reply to message #17963] |
Tue, 12 December 2006 15:53 |
Eclipse User |
|
|
|
Originally posted by: x_naren.hotmail.com
Hi Chris,
While I was trying to do this I noticed that
void newItem(GridItem item, int index) {
..............
if (items.size() == 1)
rowHeight = computeRowHeight(sizingGC);
}
which means that rowHeight is based on row 1 and is computed once during
the creation and cannot be changed later
say, If I create
class MyTable extends Grid
and still cannot override either
newItem (package access)
computeRowHeight (private)
rowHeight (private)
In my case, I need to set the itemheight if the shell is resized (all the
rows will be of same height). I tried to change font height to reflect
this, font in the table changes but not the item height.
Please, let me know if there is any other way to reflect this behavior.
Thanks
Naren
Chris Gross wrote:
> This is currently only possible if you write your own custom cell renderer.
> -Chris
> Naren wrote:
>> How to set cell height in Grid?
>>
>> Naren
>>
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04797 seconds