Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Table selection issue(Table selection issue when vertical scroll is enabled)
Table selection issue [message #1016441] Wed, 06 March 2013 13:20 Go to next message
Amandeep Chahal is currently offline Amandeep ChahalFriend
Messages: 85
Registered: September 2011
Location: India
Member
In a particular scenario when the vertical scrollbar for table is enabled and visible, the selection item's getBounds method returns wrong values.

Steps to reproduce :
1. Replace the TableTab in the demo controls with the TableTab attached.
2. I have modified code such that when a row is double clicked, a text editor opens. The bounds of the editor are set using the bounds of the item.
3. Run the demo. Check the following for the table in the UI : 'BORDER' and 'linesVisible'
4. Change the table size (reduce it) so that the vertical scrollbar is visible.
5. Now scroll to the last item and adjust the table size such that there's exactly space of another row left after the last row. (Refer attached image)
6. Double click on the item. The editor is opened at the wrong position (in the empty space below the last row).
7. Now readjust the table size so that there's no space after the last row, double click the last row now. The editor comes up at the right position.
Re: Table selection issue [message #1016447 is a reply to message #1016441] Wed, 06 March 2013 13:35 Go to previous messageGo to next message
Amandeep Chahal is currently offline Amandeep ChahalFriend
Messages: 85
Registered: September 2011
Location: India
Member
I'm using RAP version 2.0
Re: Table selection issue [message #1016452 is a reply to message #1016447] Wed, 06 March 2013 13:45 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
I can reproduce it with your snippet and RAP from master. The key point
is: "adjust the table size such that there's exactly space of another
row left after the last row". Please open a bugzilla and attach the
snippet there.
Thanks,
Ivan

On 3/6/2013 3:35 PM, Amandeep Chahal wrote:
> I'm using RAP version 2.0

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Table selection issue [message #1016458 is a reply to message #1016447] Wed, 06 March 2013 14:15 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi again,
is it reproducible for you without SWT.BORDER style flag set?
Best,
Ivan

On 3/6/2013 3:35 PM, Amandeep Chahal wrote:
> I'm using RAP version 2.0

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Table selection issue [message #1016617 is a reply to message #1016458] Thu, 07 March 2013 07:40 Go to previous messageGo to next message
Amandeep Chahal is currently offline Amandeep ChahalFriend
Messages: 85
Registered: September 2011
Location: India
Member
I could not reproduce it without SWT.BORDER style flag set.
Re: Table selection issue [message #1016619 is a reply to message #1016617] Thu, 07 March 2013 07:44 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
I've traced down the problem and I have a fix for it. Please open a
bugzilla to keep it documented and I will commit my fix asap.
Thanks,
Ivan

On 3/7/2013 9:40 AM, Amandeep Chahal wrote:
> I could not reproduce it without SWT.BORDER style flag set.

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Table selection issue [message #1016620 is a reply to message #1016617] Thu, 07 March 2013 07:48 Go to previous message
Amandeep Chahal is currently offline Amandeep ChahalFriend
Messages: 85
Registered: September 2011
Location: India
Member
I have created a bug for this https://bugs.eclipse.org/bugs/show_bug.cgi?id=402611
Previous Topic:RAP 2.0 Tooltip on Table(Viewer) column header not working
Next Topic:TreeViewer : how to set focus on a particular cell
Goto Forum:
  


Current Time: Fri Apr 19 22:38:51 GMT 2024

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

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

Back to the top