I need to place a widget based on the values returned from
rootPanel.getAbsolutreLeft() and rootPanel.getAbsoluteTop(), where
rootPanel is the div in the module html that I add the main
composite. In IE7, it works as expected, while in Chrome and FireFox,
the return values are (0, 0). The code is shown in below. I am using
GWT 1.5.3
Need your help to figure this out. Thanks
public void onModuleLoad() {
RootPanel rootPanel = RootPanel.get().get("main");
HomeComp comp = new HomeComp();
rootPanel.add(comp);
int left = rootPanel.getAbsoluteLeft();
int top = rootPanel.getAbsoluteTop();
SiteNavigator nav = new SiteNavigator();
nav.setPopupPosition(left-200, top+100);
nav.show();
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---