Re: how to reposition the popup when window gets resized

2011-05-03 Thread Fidencio Velasquez
Feedback
El may 2, 2011 9:47 p.m., newbee gandhamsat...@gmail.com escribió:
 Thanks guys. I will try this ResizeHandle solution and will post it if
 that works well.

 On May 2, 9:24 pm, Ben Imp benlee...@gmail.com wrote:
 I believe the center() method on the dialog will re-center a dialog even
if
 its already visible.  Stick that into a resize handler and you should be
 good to go.

 -Ben

 --
 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+unsubscr...@googlegroups.com.
 For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.


-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



how to reposition the popup when window gets resized

2011-05-02 Thread newbee
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: how to reposition the popup when window gets resized

2011-05-02 Thread jhulford
Use a Window ResizeHandle and reposition your dialog when the window
is resized.

On May 2, 9:16 am, newbee gandhamsat...@gmail.com wrote:
 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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: how to reposition the popup when window gets resized

2011-05-02 Thread mike b
If you find an elegant solution, please post it.  I have the same thing on my 
to do list.  Thx 

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: how to reposition the popup when window gets resized

2011-05-02 Thread Ben Imp
I believe the center() method on the dialog will re-center a dialog even if 
its already visible.  Stick that into a resize handler and you should be 
good to go.

-Ben

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: how to reposition the popup when window gets resized

2011-05-02 Thread newbee
Thanks guys. I will try this ResizeHandle solution and will post it if
that works well.

On May 2, 9:24 pm, Ben Imp benlee...@gmail.com wrote:
 I believe the center() method on the dialog will re-center a dialog even if
 its already visible.  Stick that into a resize handler and you should be
 good to go.

 -Ben

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.