MouseEvent<http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/event/dom/client/MouseEvent.html>#getRelativeX,
MouseEvent#getRelativeY.  Or calculate it manually using Event#getClientX(),
getClienty() with Element#getAbsoluteLeft, Element#getAbsoluteTop.

On Tue, Apr 14, 2009 at 8:04 PM, raulsan <[email protected]> wrote:

>
> Hi,
> I used gwt 1.6.1 to implement an small aplication. And to get the
> coordinates of the mouse on an event inside the widget I used:
>
>  int x = Event.getRelativeX(event, this.getElement());
>  int y = Event.getRelativeY(event, this.getElement());
>
> but now I changed to 1.6.4, and I get an error. This functions do no
> exist, and they are not in the API anymore. Anyone knows why?
> is there a better way to do the same?
> Thank you!
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to