Friday, January 18, 2013

Re: Canvas dynamical size?



On Friday, January 18, 2013 2:57:17 PM UTC+1, membersound wrote:
OK so assuming I have a wrapper class for the canvas that is placed in the center element, I can get the size of the center-panel by:
this.getElement().getParentElement().getClientWidth();

I don't know if this is the proper way, but at least it works.


BUT again I could not get the RequiresResize to work.

Can you share your code? (the whole widget hierarchy up to the RootLayoutPanel)
The Showcase sample uses DockLayoutPanel and it seems to Just Work™ (there's an inner DockLayoutPanel nested in the outer DockLayoutPanel, and it seems to correctly resize its inner layers)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/61ikWPVE-fAJ.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate