Wednesday, March 28, 2012

DockLayoutPanel.getOffsetHeight return zero even after calling forceLayout()

there is a simplePanel and the simplePanel add a DockLayoutPanel called AdvancedSearchPanel.
in the AdvancedSearchPanel constructor, the width is set to 100% and height to 1800px.

then there is a menu item and when it is clicked,
I try to add the AdvancedSearchLogsPanel() to simplePanel and then called
advancedSearchLogsPanel.forceLayout()
before calling
advancedSearchLogsPanel.getOffsetWidth() and advancedSearchLogsPanel.getOffsetHeight()
but both return zero!!

what is the problem come from?

--
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/-/7ahhSanEb6kJ.
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