Hilbrand / cobogwave

GWT wrapper for Google Wave Gadget API
Apache License 2.0
0 stars 0 forks source link

Wave DialogBox does nto auto resize (width) #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
<code>
VerticalPanel vp=new VerticalPanel();
org.cobogw.gwt.waveapi.gadget.client.ui.Button testBtn=new 
org.cobogw.gwt.waveapi.gadget.client.ui.Button("test");
final org.cobogw.gwt.waveapi.gadget.client.ui.DialogBox dBox=new 
org.cobogw.gwt.waveapi.gadget.client.ui.DialogBox();
TextBox tBox=new TextBox();
tBox.setVisibleLength(50);
tBox.setMaxLength(100);
dBox.setWidget(tBox);
testBtn.addClickHandler(new ClickHandler(){

    @Override
    public void onClick(ClickEvent event) {
        dBox.show();
    }
});

vp.add(testBtn);
</code>

What is the expected output? What do you see instead?
the DialogBox should auto resize to fit the widget.
tried using setWidth() and setSize() and setPixelSize(), but they dont work too.

What version of the product are you using? On what operating system?
1.1.2
gadget 1.2
gwt 2.0.3
chrome
win7

Please provide any additional information below.

Original issue reported on code.google.com by monstern...@gmail.com on 3 Jul 2010 at 9:21

GoogleCodeExporter commented 9 years ago
i got it to work somehow, just add this line
dBox.getElement().getStyle().setProperty("width","auto");

Original comment by monstern...@gmail.com on 19 Jul 2010 at 3:55

GoogleCodeExporter commented 9 years ago

Original comment by hs@h72.nl on 23 Jul 2010 at 4:39

GoogleCodeExporter commented 9 years ago
Thank you very much monstern, you just saved me from insanity :P. By the way, 
how did u manage to get that workaround?
Cheers mate!

Original comment by jreis7...@gmail.com on 4 Feb 2012 at 9:37

GoogleCodeExporter commented 9 years ago
i just play around with the css using inspect element in google chrome.
i thought google wave was discontinued?

Original comment by monstern...@gmail.com on 5 Feb 2012 at 7:10

GoogleCodeExporter commented 9 years ago
Nice, i think i will be using firebug more often then. You are right, google 
wave seems to have been discontinued but i was facing this problem while 
playing around with GWT: same problem, different applications :P. 
Take care!

Original comment by jreis7...@gmail.com on 5 Feb 2012 at 11:01