Thanks, I just had the time to try your suggestion now, and it really works as expected.
Just placed the canvas inside g:AbsolutePanel and now I can call add(widget, int, int) and remove() wherever I want.
Just placed the canvas inside g:AbsolutePanel and now I can call add(widget, int, int) and remove() wherever I want.
2013/2/9 Jens <jens.nehlmeier@gmail.com>
I guess the right way is to add the TextBox to the canvas-wrapping Panel?
I would say so.And is so, how can I align the box then?
The wrapping panel could be a GWT AbsolutePanel that allows you to give all childs an absolute position using top/left coordinates. Your Canvas would start at 0,0 and have a width/height of 100% while the TextBox can have any other position/dimension.If you don't want to use AbsolutePanel you could also just add some custom CSS to your TextBox and position it that way. Just make sure that when you use the CSS rule "position:absolute;" on the TextBox, the parent panel should have "position:relative;" set. Otherwise top/left coordinates for the TextBox are not relative to the bounds of the parent panel.-- J.--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment