read this, http://stackoverflow.com/questions/11750268/how-to-get-the-width-height-of-a-canvas
its surprising not what you think. Why google, why??? kara m On Sunday, April 28, 2013 9:13:32 AM UTC-5, membersound wrote: > > Hi, > > I have a canvas within the following layout: > DockLayoutPanel > center > ResizeLayoutPanel > AbsolutePanel > Canvas > > How can I set the coordinateSpace height/width always according to the > actual size? How can I get the center size of the dock when creating the > canvas? > > I thought I could just walk up the parent tree from the canvas and get the > clientwidth, but it is always = 0 > > canvas.getElement().getParentElement().getParentElement().getParentElement().getClientWidth() > > What is wrong here? > -- 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 [email protected]. To post to this group, send email to [email protected]. 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.
