You must first add the Frame to the document 
otherwise doc.getElementById() can not find it. You also have to wait until 
the frame content is fully loaded before reading any size related values.

Finally your setFrameSize() seems not optimal. You call 4x getElementById() 
instead of just 1x (keep a reference of the found element) and the if() 
does not protect you from anything as you call $doc.getElementById inside 
and outside the if().

Finally as a reminder: $doc is a special GWT variable so if your frame 
content is not a GWT app then calling $doc inside the frame will not work.

-- 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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to