Sunday, May 23, 2010

Re: widget invisible after AbsolutePanel.SetWidgetPosistion(widget,x,y)

sorry guys, i have solved this myself already.

you have to set the size of the absolutepanel explicitly at least once
somewhere and then it works

On May 23, 1:23 am, outsource lucas <outsourcelu...@gmail.com> wrote:
> I added a widget (a vertical panel with a few buttons) to an
> absolutepanel, this displays the widget at (0,0).
>
> After calling AbsolutePanel.SetWidgetPosistion(widget,x,y) for the
> first time (from a button handler) the widget dissappears.
>
> why does this happen? what did i forget?
>
> do I have to set the sizes explicitly? (didnt do that)
>
> does setwidgetposition work with panels as widgets too?
>
> --
> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en.

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

No comments:

Post a Comment