Thank you for reading this,

In short, I have a challenge with a Style called element.style and a Dialog 
Box, the box is square and I would like it wider, as I change some styles of 
the panel which I put in as widget, the inside Panel grows, but the Dialog Box 
is stubborn and stays square in his size and the panel becomes partly invisible.

My level is Java beginner.

I following the lecture of "Essential GWT" and his MVP model (see ISBN 
0-321-70514-9)

My code according the some examples from the book and mixer of my own thoughts 
what I hope this is right way to do.

        // My DialogBox

                final DialogBox simpleQueryBox = new DialogBox();
                simpleQueryBox.setText("Simple Query");
                simpleQueryBox.setGlassEnabled(true);
                simpleQueryBox.setAnimationEnabled(true);

// the MVP like form.
// constructor of SimpleQueryPresenter, gets a instance of DialogBox (so my 
presenter of this popup box can close himself, sorry for the mesh), string 
params, the View(page buildup), and a callback which returns an SQL query 
string as result).

                final SimpleQueryPresenter simpleQueryPresenter = new 
SimpleQueryPresenter(simpleQueryBox,
                                                                                
                                                                                
   params, 
                                                                                
                                                                                
   new SimpleQueryView(), 
                                                                                
                                                                                
   this.getEnvironment(),new SimpleCallback<String>(){

                        @Override
                        public void goBack(String result) {
                                // TODO Auto-generated method stub
                                // not important yet.
                        }
                });

// put them together.

        simpleQueryBox.setWidget(simpleQueryPresenter.getDisplay().asWidget());

After that an Handler tells the simpleQueryBox to appear and the SimpleQuery 
handler tells him to hide, simple it works.

BUT,....I want it the box being wider, and I cannot figure out why, I see this 
in my Mozilla Firebug trace tool an style which I cannot find or overlook. I 
read a lot, but I mis it somewhere.

A style called  element.style

element.style {
  clip: rect(auto, auto, auto, auto);
  left: 607px;
  overflow: visible;
  position: absolute;
  top: 218px;
  visibility: visible;
}

I know and tried, if I get rid of the clip in the style element (I can turn it 
of in Firebug to experiment), everything is all right. But it seems and I am 
surprised because I'm new to css that this element.style is dynamic, but 
firebug claims it comes from the stylesheet which is locate directly in the war 
folder root. It isn't there, ok for me it is strange yet.

My question:
a. Can I get rid of only this clip setting in the element.style?
b. I doing it wrong and should do it otherwise, please advise.

Thank you for your time effort spend to help me.

Kind regards Michel.




PS Sorry have to mention......Google GWT rocks ! :)








-- 
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.

Reply via email to