Hi, I'm trying to implement what I call "anchored popups". For example, a form field(the "anchor") would have a PopupPanel sliding open to its right, showing some validation error. The popup would calculate and set its position based on its anchor's just before showing itself.
The problem comes when I try to do this inside a TabPanel. TabPanel (in fact the underlying DeckPanel) apparently keeps tabs other than the first one somewhere outside the panel area, and only changes a tab's position (and its children's) into the panel display area when the tab is selected. This causes the problem for the position calculation of my popup, because I'm doing it in a SelectionHandler. But that is called before tab position changes actually happen. At the moment I have a workaround/hack that in the SelectionHandler I schedule a timer for 500ms before trying to show the popups so that the TabPanel has time to do its business. I wonder if there are better ways to do this more deterministically. I'm using gwt 1.7.1 by the way. Thanks for any thoughts and pointers. -- Jing Xue -- 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.
