Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Bug in Table.getColumnOrder() when after moving a column
Bug in Table.getColumnOrder() when after moving a column [message #136507] Tue, 16 June 2009 17:03 Go to next message
Loïc Bertholet is currently offline Loïc BertholetFriend
Messages: 57
Registered: July 2009
Member
Hi all,

When I drag and drop a column, the call of Table.getColumnOrder() returns
a wrong array when the first column of the table are hidden thanks to a
scroll bar which is outside the table.
It seems that the new position of the moved column is calculated without
these hidden column.

Example : I have 10 columns, the 5 first are hidden, the other one are
visible.
Order is : [0,1,2,3,4,5,6,7,8,9]
If I move 9 before 7 I should have [0,1,2,3,4,5,6,9,7,8]
And I obtain [0,1,9,2,3,4,5,6,7,8]

If needed, I will try to extract a snippet from my code, just ask.

Thanks,

Loïc
Re: Bug in Table.getColumnOrder() when after moving a column [message #136569 is a reply to message #136507] Wed, 17 June 2009 13:30 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Loïc,

with the latest version from CVS I cannot reproduce what you
describe. Which version are you using?

Cheers,
Rüdiger


Loïc Bertholet wrote:
> Hi all,
>
> When I drag and drop a column, the call of Table.getColumnOrder()
> returns a wrong array when the first column of the table are hidden
> thanks to a scroll bar which is outside the table.
> It seems that the new position of the moved column is calculated without
> these hidden column.
>
> Example : I have 10 columns, the 5 first are hidden, the other one are
> visible.
> Order is : [0,1,2,3,4,5,6,7,8,9]
> If I move 9 before 7 I should have [0,1,2,3,4,5,6,9,7,8]
> And I obtain [0,1,9,2,3,4,5,6,7,8]
>
> If needed, I will try to extract a snippet from my code, just ask.
>
> Thanks,
>
> Loïc
>
>
Re: Bug in Table.getColumnOrder() when after moving a column [message #136606 is a reply to message #136569] Wed, 17 June 2009 15:14 Go to previous messageGo to next message
Loïc Bertholet is currently offline Loïc BertholetFriend
Messages: 57
Registered: July 2009
Member
Hi Rüdiger,

I'm also using the latest version from CVS.
It is happening on FF3 and IE7.
And it only happens when some TableColumns of the beginning are hidden by
a scroll bar which is not the Table one : my Table does not have scroll
bar.
It can be the scroll bar of the ScrolledComposite or the View which
contained the Table.
I will try to provide a snippet as soon as possible.

Loïc

Rüdiger Herrmann wrote:

> Loïc,

> with the latest version from CVS I cannot reproduce what you
> describe. Which version are you using?

> Cheers,
> Rüdiger


> Loïc Bertholet wrote:
>> Hi all,
>>
>> When I drag and drop a column, the call of Table.getColumnOrder()
>> returns a wrong array when the first column of the table are hidden
>> thanks to a scroll bar which is outside the table.
>> It seems that the new position of the moved column is calculated without
>> these hidden column.
>>
>> Example : I have 10 columns, the 5 first are hidden, the other one are
>> visible.
>> Order is : [0,1,2,3,4,5,6,7,8,9]
>> If I move 9 before 7 I should have [0,1,2,3,4,5,6,9,7,8]
>> And I obtain [0,1,9,2,3,4,5,6,7,8]
>>
>> If needed, I will try to extract a snippet from my code, just ask.
>>
>> Thanks,
>>
>> Loïc
Re: Bug in Table.getColumnOrder() when after moving a column [message #136618 is a reply to message #136606] Wed, 17 June 2009 15:17 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
I think the ScrolledComposite was the thing missing.
Feel free to file a bugzilla and attach the code there.

Loïc Bertholet wrote:
> Hi Rüdiger,
>
> I'm also using the latest version from CVS.
> It is happening on FF3 and IE7.
> And it only happens when some TableColumns of the beginning are hidden
> by a scroll bar which is not the Table one : my Table does not have
> scroll bar.
> It can be the scroll bar of the ScrolledComposite or the View which
> contained the Table.
> I will try to provide a snippet as soon as possible.
>
> Loïc
>
> Rüdiger Herrmann wrote:
>
>> Loïc,
>
>> with the latest version from CVS I cannot reproduce what you describe.
>> Which version are you using?
>
>> Cheers,
>> Rüdiger
>
>
>> Loïc Bertholet wrote:
>>> Hi all,
>>>
>>> When I drag and drop a column, the call of Table.getColumnOrder()
>>> returns a wrong array when the first column of the table are hidden
>>> thanks to a scroll bar which is outside the table.
>>> It seems that the new position of the moved column is calculated
>>> without these hidden column.
>>>
>>> Example : I have 10 columns, the 5 first are hidden, the other one
>>> are visible.
>>> Order is : [0,1,2,3,4,5,6,7,8,9]
>>> If I move 9 before 7 I should have [0,1,2,3,4,5,6,9,7,8]
>>> And I obtain [0,1,9,2,3,4,5,6,7,8]
>>>
>>> If needed, I will try to extract a snippet from my code, just ask.
>>>
>>> Thanks,
>>>
>>> Loïc
>
Re: Bug in Table.getColumnOrder() when after moving a column [message #136642 is a reply to message #136618] Wed, 17 June 2009 16:35 Go to previous message
Loïc Bertholet is currently offline Loïc BertholetFriend
Messages: 57
Registered: July 2009
Member
Done : https://bugs.eclipse.org/bugs/show_bug.cgi?id=280636

Rüdiger Herrmann wrote:


> I think the ScrolledComposite was the thing missing.
> Feel free to file a bugzilla and attach the code there.
Previous Topic:Pictures in body.html used for branding
Next Topic:Rap (jetty server) ---> https connection how to
Goto Forum:
  


Current Time: Thu Apr 25 22:05:58 GMT 2024

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

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

Back to the top