Good workaround. thanks Parvez!
On Sep 4, 12:11 pm, Parvez Shah <[email protected]> wrote:
> Not sure if its a Bug of DialogBox
> my guess is its a bug of decorator panel
>
> any way your problem is you are setting size of DialogBox which is creating
> the problem
> solution 1) remove setSize
> solution 2) if you want to use setSize then wrap your content in vertical
> panel
> something like this
>
> class ClothingForm extends DialogBox {
> public ClothingForm() {
> setText("Clothing");
> //setSize("30em", "30em");
>
> Button ok = new Button("OK");
> ok.addClickHandler(new ClickHandler() {
> public void onClick(ClickEvent event) {
> ClothingForm.this.hide();
> }
> });
>
> VerticalPanel content = new VerticalPanel();
> content.setSize("30em", "30em");
> setWidget(content);
> content.add(ok);
> }
> }
>
>
>
> On Thu, Sep 3, 2009 at 8:05 PM, Bob L. <[email protected]> wrote:
>
> > public class ClothingForm extends DialogBox {
> > public ClothingForm() {
> > setText("Clothing");
> > setSize("30em", "30em");
>
> > Button ok = new Button("OK");
> > ok.addClickHandler(new ClickHandler() {
> > public void onClick(ClickEvent event) {
> > ClothingForm.this.hide();
> > }
> > });
>
> > setWidget(ok);
> > }
> > }
>
> > The result:
>
> >http://lh3.ggpht.com/_HQyyXYqJEaE/Sp_TxaB6FII/AAAAAAAAAMk/F3pqmFFjG4s...-
> >Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---