I've got a simple window/portlet (header, min/max/close buttons,
desktop style, etc) system I'm working on for GWT 2.2.0. I have an
absolute panel which I've added to the RootPanel acting as a bounding
box for these windows/portlets to reside in. To represent the window
I'm using a FocusPanel which contains a header (another FocusPanel for
gwt-dnd usage) and content (which is in this case a Composite widget).
This all works well if adding to a position like the top-left of the
absolute panel (0, 0). I want to add a window/portlet along the right
edge, though, and am running into issues. My current logic is
utilizing absolutePanel.setWidget(windowPanel, right, top) where right
is computed correctly based on the width of the absolutePanel minus
the width of the width of the windowPanel. The issue is that upon
initial load, the windowPanel does not seem to have the correct width
or height, it is reading as 165px when it should be 212px. The window
winds up halfway off the screen to the right side due to this, as it
seems a split second later it has the correct width of 212px. I've
tried utilizing the onLoad and onAttach methods with no luck.

Can anyone even understand my issue? I've been looking all over the
net for info on GWT's rendering process. It seems there must be some
event that I'm simply overlooking. Does anyone have a good resource
regarding GWT's rendering process? Thanks...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to