Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » getOrigin()/setOrigin() in ScrolledComposite
getOrigin()/setOrigin() in ScrolledComposite [message #18052] Thu, 19 April 2007 08:13 Go to next message
Eclipse UserFriend
Originally posted by: roberto.sanchez.autonomind.com

Hi, I'm having problems with ScrolledComposite.

Method getOrigin() in org.eclipse.rap.rwt.custom.ScrolledComposite.java
always return (0, 0), because content.getLocation() returns Point(0,0)
although the scroll origin isn't at the beginnig of the content

public Point getOrigin() {
checkWidget();
Point result;
if( content == null ) {
result = new Point( 0, 0 );
} else {
Point location = content.getLocation();
result = new Point( -location.x, -location.y );
}
return result;
}

And when I call setOrigin the ScrolledComposite behaviour isn't fine, I
lose scrollbars or I'm not be able to reach the top of my content any more.

Any help ?

Regards.
Roberto.
Re: getOrigin()/setOrigin() in ScrolledComposite [message #18078 is a reply to message #18052] Thu, 19 April 2007 09:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: roberto.sanchez.autonomind.com

Hi again, I think that the problem is a Javascript problem, the
ScrolledComposite.java seems to be well implemented but when content has
a negative location (setted manually with setOrigin()) the browser
doesn't know how to paint it and when the scrollbars are moved by the
user the content location in ScrolledComposite.java isn't modified, so
if you call getOrigin() the value returned is obsolete.

I hope that can help you to solve it.

Bye.

Roberto Sánchez wrote:
> Hi, I'm having problems with ScrolledComposite.
>
> Method getOrigin() in org.eclipse.rap.rwt.custom.ScrolledComposite.java
> always return (0, 0), because content.getLocation() returns Point(0,0)
> although the scroll origin isn't at the beginnig of the content
>
> public Point getOrigin() {
> checkWidget();
> Point result;
> if( content == null ) {
> result = new Point( 0, 0 );
> } else {
> Point location = content.getLocation();
> result = new Point( -location.x, -location.y );
> }
> return result;
> }
>
> And when I call setOrigin the ScrolledComposite behaviour isn't fine, I
> lose scrollbars or I'm not be able to reach the top of my content any more.
>
> Any help ?
>
> Regards.
> Roberto.
Re: getOrigin()/setOrigin() in ScrolledComposite [message #18708 is a reply to message #18078] Thu, 19 April 2007 11:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

thank you very much for posting this problem. We will check how to solve it.

One note beside: It is easier for us to handle Bugs if they are posted in
the eclipse bugzilla database. It ensures that bugs don't get 'lost' or
forgotten. It is also easier for you to trace the progress and status of the
bug. You can easily create a new bugzilla account at:

https://bugs.eclipse.org/bugs/createaccount.cgi

After that you can enter new entries at:

https://bugs.eclipse.org/bugs/enter_bug.cgi

select technology -> RAP. After that you are on the 'Enter Bug' form. For
feature requests select 'Enhancement' from the severity dropdown.

Ciao
Frank


"Roberto S
Re: getOrigin()/setOrigin() in ScrolledComposite [message #18843 is a reply to message #18708] Thu, 19 April 2007 15:18 Go to previous message
Eclipse UserFriend
Originally posted by: roberto.sanchez.autonomind.com

OK, I will use bugzilla next time :-)

This was faster for me and I'm a bit impatient ;-)

Regards.

Frank Appel wrote:
> Hi,
>
> thank you very much for posting this problem. We will check how to solve it.
>
> One note beside: It is easier for us to handle Bugs if they are posted in
> the eclipse bugzilla database. It ensures that bugs don't get 'lost' or
> forgotten. It is also easier for you to trace the progress and status of the
> bug. You can easily create a new bugzilla account at:
>
> https://bugs.eclipse.org/bugs/createaccount.cgi
>
> After that you can enter new entries at:
>
> https://bugs.eclipse.org/bugs/enter_bug.cgi
>
> select technology -> RAP. After that you are on the 'Enter Bug' form. For
> feature requests select 'Enhancement' from the severity dropdown.
>
> Ciao
> Frank
>
>
> "Roberto Sánchez" <roberto.sanchez@autonomind.com> schrieb im Newsbeitrag
> news:f07cf8$gdq$1@build.eclipse.org...
>> Hi again, I think that the problem is a Javascript problem, the
>> ScrolledComposite.java seems to be well implemented but when content has a
>> negative location (setted manually with setOrigin()) the browser doesn't
>> know how to paint it and when the scrollbars are moved by the user the
>> content location in ScrolledComposite.java isn't modified, so if you call
>> getOrigin() the value returned is obsolete.
>>
>> I hope that can help you to solve it.
>>
>> Bye.
>>
>> Roberto Sánchez wrote:
>>> Hi, I'm having problems with ScrolledComposite.
>>>
>>> Method getOrigin() in org.eclipse.rap.rwt.custom.ScrolledComposite.java
>>> always return (0, 0), because content.getLocation() returns Point(0,0)
>>> although the scroll origin isn't at the beginnig of the content
>>>
>>> public Point getOrigin() {
>>> checkWidget();
>>> Point result;
>>> if( content == null ) {
>>> result = new Point( 0, 0 );
>>> } else {
>>> Point location = content.getLocation();
>>> result = new Point( -location.x, -location.y );
>>> }
>>> return result;
>>> }
>>>
>>> And when I call setOrigin the ScrolledComposite behaviour isn't fine, I
>>> lose scrollbars or I'm not be able to reach the top of my content any
>>> more.
>>>
>>> Any help ?
>>>
>>> Regards.
>>> Roberto.
>
>
Previous Topic:JAX in Wiesbaden, Germany
Next Topic:Lost connection with server
Goto Forum:
  


Current Time: Fri Apr 26 15:25:25 GMT 2024

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

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

Back to the top