Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChosenListBox doesn't expose the Chosen element #48

Open
GoogleCodeExporter opened this issue Dec 7, 2015 · 0 comments
Open

ChosenListBox doesn't expose the Chosen element #48

GoogleCodeExporter opened this issue Dec 7, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

I want to be able to apply styling (width) to the chosen list box.

    final ChosenListBox listBox = new ChosenListBox();
    listBox.addStyleName("smart_listbox");

Unfortunately this adds the style name to the select element, which has 
display:none set.

<div class="transform_box" style="z-index: 200046;">

<select class="smart_listbox GIPV0LMBNI chzn-done" id="chozen_container__0" 
style="display: none;"><option value="Strong Democrat">Strong 
Democrat</option><option value="Likely Democrat">Likely 
Democrat</option><option value="Likely Republican">Likely 
Republican</option><option value="Strong Republican">Strong 
Republican</option></select>

<div id="chozen_container__0_chzn" class="GIPV0LMBGI GIPV0LMBJI" style="width: 
120px;">
<a href="javascript:void(0)" class="GIPV0LMBFJ" tabindex="0">
<span>Strong Republican</span><div><b></b></div></a>
etc
</div>

I want to be able to style the chosen container itself, as for some reason its 
width is too narrow to display the given options.


Original issue reported on code.google.com by [email protected] on 25 Jan 2013 at 9:03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant