Hi Kwame,
I just tried to reproduce the issue with the code snippet below and didn't
have any problems with displaying the ListBox. I tried this on Firefox 2
with GWT 1.5 and used the standard stylesheet (<inherits
name="com.google.gwt.user.theme.standard.StandardResources"/>)
Here is the code snippet:
TestClient entypoint class:
ListBox lb = new ListBox();
lb.addItem("A");
lb.addItem("B");
lb.addItem("C");
RootPanel.get("slot1").add(lb);
index.html:
<html>
<head />
<body>
<script language="javascript"
src="com.google.test.Test.nocache.js"></script>
<div id="slot1"></div>
</body>
</html>
Generated DOM for listbox component:
<div id="slot1">
<select class="gwt-ListBox" tabindex="0">
<option value="Something">Something</option>
<option value="For">For</option>
<option value="Nothing">Nothing</option>
</select>
</div>
I'm not sure where the added "overflow: hidden;..." attribute came from in
your case. Could you post back with more details on:
1) Which version of GWT you were using when the problem occurred
2) Which GWT style you're applying
3) Which version of Firefox you're using
Thanks,
-Sumit Chandel
On Tue, Sep 2, 2008 at 11:39 AM, Kwame <[EMAIL PROTECTED]> wrote:
>
> I have a ListBox which displays just fine with
> rootPanel.get('picker').add(listBox, -1, -1), but not with
> rootPanel.get('picker').add(listBox)
>
> When I look at the css on firebug i see this nested inside </div>:
>
> <div id='picker'>
>
> <div style="overflow: hidden; position: relative; width: 100%;">
> <select class="gwt-ListBox" tabindex="0" style="position: absolute;
> left: 24px; top: 33px; width: 150px;" size="1">
> </div>
>
> </div>
>
> My question is: why does the inner div have "overflow: hidden"?
>
> if I edit this out on firebug, the widget displays. but I would like
> to know what method to call on the widget/composite's class to prevent
> this type of styling!!!
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---