Re: GWT Popup is not centered

2010-06-28 Thread RPB
I see the exact same behaviour in my application, and would appreciate any ideas with this issue. The popup is not centered for the first time only, and afterwards popup.center() works fine. I am using GWT 2.0.3. Here is some sample code: public class LoginForm extends PopupPanel { public

Re: GWT Popup is not centered

2010-06-28 Thread andreas
Did you try calling center() after the constructor, for example right after where you instantiate the PopupPanel without the center() inside the constructor? I'm not that deep into GWT core but maybe it's related to the fact that elements get their real/actual dimensions (and these are needed to

Re: GWT Popup is not centered

2010-06-28 Thread Paul Stockley
Make sure the first widget you add the to dialog has a width and ideally height set. Also make sure you don't have a css value set. The starter app sets this and it causes all sorts of problems. On Jun 28, 9:59 am, andreas horst.andrea...@googlemail.com wrote: Did you try calling center() after

GWT Popup is not centered

2010-06-27 Thread Ricardo.M
Hi, I use gwt popup to show some messages, but it is not displayed in the center of the display event if i call popup.center(). Actually it is not centered only the first time, if i close it and open it again every thing is ok, but not the first time. How to fix that? I tried using

Re: gwt Popup is not centered

2010-03-15 Thread RPB
Hi mariyan, Did you manage to resolve this issue? I see the exact same behaviour on my application - the popup is not centered for the first time only, and afterwards popup.center() works fine. I am using GWT 2.0.3. Here is some sample code - I really can't see why this is happening. Thanks in

Re: gwt Popup is not centered

2010-03-15 Thread mariyan nenchev
No, i did not. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For

Re: gwt Popup is not centered

2010-03-15 Thread Dan
Put the panel and everything else that goes into it in before doing center and show. On Mar 15, 6:37 am, mariyan nenchev nenchev.mari...@gmail.com wrote: No, i did not. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this

Re: gwt Popup is not centered

2010-03-15 Thread Paul Stockley
First, the only reliable way to set the size of the dialog is to set the width and height of the first container widget you add to the dialog. Don't try setting width and height on the dialog box, it doesn't work and there is a bug logged against this. Secondly, make sure you don't have a style

gwt Popup is not centered

2010-03-12 Thread mariyan nenchev
Hi, I use gwt popup to show some messages, but it is not displayed in the center of the display event if i call popup.center(). Actually it is not centered only the first time, if i close it and open it again every thing is ok, but not the first time. How to fix that? Regards. -- You received

Re: gwt Popup is not centered

2010-03-12 Thread rudolf michael
try to set the pixel size of the popup before centering it. popup.setPixelSize(width, height); On Fri, Mar 12, 2010 at 5:04 PM, mariyan nenchev nenchev.mari...@gmail.comwrote: Hi, I use gwt popup to show some messages, but it is not displayed in the center of the display event if i call

Re: gwt Popup is not centered

2010-03-12 Thread mariyan nenchev
Well i am setting pixel size on the Panel inside the popup -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to

Re: gwt Popup is not centered

2010-03-12 Thread Jim Douglas
Have you reviewed the sample -- with detailed comments -- near the top of the javadoc page? http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/PopupPanel.html On Mar 12, 7:13 am, mariyan nenchev nenchev.mari...@gmail.com wrote: Well i am setting pixel size on