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 Gustafsson
Messages: 12
Registered: July 2009
Junior Member
Hi

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
scrolling
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
scrolling...

2) There seems to be a small bug when using header/footers together with a
RowHeader.
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
GridHeaderEditor:

if (rect == null || rect.x < 0)
{
getEditor().setVisible(false);
return;
}
else
{
getEditor().setVisible(true);
}

by adding the following else if:

else
if(table.getItemHeaderWidth()>0&&table.getItemHeaderWidth() >rect.x)
{
getEditor().setVisible(false);
return;
}

Seems to take care of the problem...

Best Regards

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


Current Time: Tue Sep 23 12:20:10 GMT 2014

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

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