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 08:20 Go to next message
Amandeep Chahal is currently offline Amandeep Chahal
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 08:35 Go to previous messageGo to next message
Amandeep Chahal is currently offline Amandeep Chahal
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 08:45 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1777
Registered: July 2009
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 09:15 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1777
Registered: July 2009
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 02:40 Go to previous messageGo to next message
Amandeep Chahal is currently offline Amandeep Chahal
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 02:44 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1777
Registered: July 2009
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 02:48 Go to previous message
Amandeep Chahal is currently offline Amandeep Chahal
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:TableViewer / LabelProvider Images with different width
Next Topic:RAP Textfield problem
Goto Forum:
  


Current Time: Mon Jul 28 02:27:15 EDT 2014

Powered by FUDForum. Page generated in 0.04793 seconds