Hi,

did you try to use the getAbsoluteLeft() or getAbsoluteTop() methods
of the widget class?

So you could query those for the child widget and for the absolute
panel and simply substract both in order to get the relative position
of the widget inside the panel.

also if the widget is a direct child of the absolute panel you might
want to have a look at

  /**
   * Gets the position of the left outer border edge of the widget
relative to
   * the left outer border edge of the panel.
   *
   * @param w the widget whose position is to be retrieved
   * @return the widget's left position
   */
  public int getWidgetLeft(Widget w) {

HTH

Dominik

On Oct 29, 4:49 am, Kriptonis Azullis <[email protected]> wrote:
> Can't anyone help?
>
> On Oct 28, 1:31 pm, Kriptonis Azullis <[email protected]> wrote:
>
> > Hi there, I'm making a application where the user makes diagrams,
> > saves them, and then loads them to visualise or edit.
> > I need a way of getting the position of the widgets within the
> > absolute panel where they are. The absolute panel occupies a certain
> > area of the page, so it's not the whole page. And it's CSS is set to
> > (40%, 450px). I did it this way because if I but a percentage in both
> > height and width, when the panel is empty it disappears, and I didn't
> > want that.
>
> > How can I know where a widget is in the absolute panel, so I can save
> > it's position, and load it from a file afterwards?
> > Also, is there a way to know the current size of the Absolute panel?
>
> > Thanks in advance ;)
>
>
--~--~---------~--~----~------------~-------~--~----~
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