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 LoginForm(){
this.setStyleName("bwPopupPanel");
this.setGlassEnabled(true);
this.add(new LoginFields());
this.center();
}
}
//..........Different class..........
private void showLoginPopUp() {
@SuppressWarnings("unused")
LoginForm loginPanel = new LoginForm();
}
Any thoughts?
On Jun 27, 9:06 pm, "Ricardo.M" <ricardo.mar...@gmail.com> wrote:
> Hi,
>
> I use gwtpopupto show some messages, but it isnotdisplayed in thecenterof the display event if i callpopup.center(). Actually it isnotcentered
> only the first time, if i close it and open it again every thing is
> ok,
> butnotthe first time. How to fix that?
>
> I tried using .setPopupPosition(350, 250); but thepopupisnot
> centered only the first time.
>
> Regards.
--
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