Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Grid Header/Footer: Scrolling
Grid Header/Footer: Scrolling [message #592852] Mon, 08 December 2008 12:45
Tommy Gustafsson is currently offline Tommy GustafssonFriend
Messages: 12
Registered: July 2009
Junior Member

I've been trying out the Header/Footer implementation of the Grid and so far
it looks
like a really nice feature. However I've found two small problems regarding
in GridHeaderEditor:

1) Firstly GridHeaderEditor adds a selectionlistener that calls layout() to
both the vertical and
the horizontal scrollbar of the Grid. I can understand the horizontal bar
but what's the reason behind the
vertical bar? Since I have a couple of hundred rows and about 20-30
columns with a
columheader attached to each, it really slows down the vertical

2) There seems to be a small bug when using header/footers together with a
If the column with the header is small enough and you scroll to the
right the header control ends
up in the area handled by the TopLeftRenderer.

Updating the following if statement in the layout() method in the

if (rect == null || rect.x < 0)

by adding the following else if:

if(table.getItemHeaderWidth()>0&&table.getItemHeaderWidth() >rect.x)

Seems to take care of the problem...

Best Regards

Previous Topic:[GalleryTreeViewer] ListItemRenderer not honoring IColorProvider
Next Topic:SWT Ribbon - Alpha 2 Out
Goto Forum:

Current Time: Thu Jun 21 10:58:42 GMT 2018

Powered by FUDForum. Page generated in 0.01991 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top