Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » nattable drop bug with scrollbar
nattable drop bug with scrollbar [message #1398428] Fri, 11 July 2014 03:56 Go to next message
yu quan is currently offline yu quanFriend
Messages: 1
Registered: July 2014
Junior Member
Here is the code:

Point pt = nattable.toControl(event.x, event.y);
int colPosition = getColumnPositionByX(pt.x);

Suppose I drop a target on column 2 without scrolling, the colPosition is 2.
Then I scroll right by one column and want to drop target on column 3, but the colPosition is still 2 because pt.x is the same. I guess nattable table does not consider the scroll situation in method getColumnPositionByX(). Please help!
Re: nattable drop bug with scrollbar [message #1399202 is a reply to message #1398428] Sat, 12 July 2014 06:56 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
This is not a bug, this is the intended behavior!


Seems you don't know about the position-index transformations in NatTable. https://www.eclipse.org/nattable/documentation.php?page=layer

In such cases you need to perform the transformations yourself. There are several topics about this in this forum already.
Previous Topic:RMB on a cell returning last selected cell position as null
Next Topic:Mouse Event for certain Layer
Goto Forum:
  


Current Time: Tue Apr 23 11:39:57 GMT 2024

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

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

Back to the top