Monday, May 2, 2011

how to reposition the popup when window gets resized

Hi All,

I am using popups in my application and I am positioning them at
absolute left and right of some other widget. Now the problem is that
when i resize the window then the relative widget left and right are
changing but the popup is still staying at the old position

Is there anyway I can reposition my popup when I resize the window.

Example:
PushButton someButton= new PushButton(addIcon);
someButton.setWidth(addIcon.getWidth() + "px");
someButton.setHeight(addIcon.getHeight() + "px");

fileListPopupPanel = new PopupPanel();
fileListPopupPanel.setStyleName("BrowserPanel-PopupPanel");
fileListPopupPanel.setAutoHideEnabled(false);

fileListPopupPanel.setPopupPosition(someButton.getAbsoluteLeft(),
(someButton
.getAbsoluteTop() + (someButton.getOffsetHeight())));

I appreciate your help.

Thanks,
satish

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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