Title: Select2 Bug with width 100%
Last modified: November 7, 2019

---

# Select2 Bug with width 100%

 *  Resolved [trummpler](https://wordpress.org/support/users/trummpler/)
 * (@trummpler)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/select2-bug-with-width-100/)
 * Hello everybody,
    since the last update I noticed the following error with searchable
   select fields, these now have a width of 100px directly as elementstyle and are
   therefore no longer 100% in width. The following code shows the problem:
 *     ```
       <span class="select2 select2-container select2-container--default select2-container--below select2-container--focus"
           dir="ltr" style="width: 100px;"<span class="selection"><span class="select2-selection select2-selection--single"
                   role="combobox" aria-haspopup="true" aria-expanded="false" tabindex="0"
                   aria-labelledby="select2-select-7-field-container"><span class="select2-selection__rendered"
                       id="select2-select-7-field-container" title="Testing1234">Testing1234</span><span
                       class="select2-selection__arrow" role="presentation"><b
                           role="presentation"></b></span></span></span><span class="dropdown-wrapper"
               aria-hidden="true"></span></span>
       ```
   
 * A similar case was discussed here: [https://wordpress.org/support/topic/search-box-width-set-to-100px-instead-of-100/](https://wordpress.org/support/topic/search-box-width-set-to-100px-instead-of-100/)
 * It renders it on load and ruins my style. Is there some way to fix this? It can’t
   be a custom style as it is directly on the span.
    Thank you!
    -  This topic was modified 6 years, 5 months ago by [trummpler](https://wordpress.org/support/users/trummpler/).
    -  This topic was modified 6 years, 5 months ago by [trummpler](https://wordpress.org/support/users/trummpler/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Laura – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support8/)
 * (@wpmudev-support8)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/select2-bug-with-width-100/#post-12110233)
 * Hi [@trummpler](https://wordpress.org/support/users/trummpler/)
 * I hope you’re well today!
 * I just tested it with the recent plugin release but can’t replicate. I used all
   default settings for the form with only Twenty Nineteen theme and it set the 
   width dynamically to “full width” of available space – without the fixed 100px
   limitation.
 * I’m thinking, though, that I might need to test with a different theme and/or
   use some specific settings, probably for the “Appearance”. Could you tell me 
   please what are the current settings of your form in “Appearance” tab?
 * I’m mostly asking about the “Design style” selected, “Form container” settings
   and if there’s any custom CSS added.
 * Could you also share a link to the page on your site where I could see that issue
   live?, please?
 * Best regards,
    Adam
 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/select2-bug-with-width-100/#post-12210540)
 * Hello [@trummpler](https://wordpress.org/support/users/trummpler/),
 * I hope you’re doing well!
 * We’ve not heard from you in a while. I’ve marked this ticket as resolved for 
   now, but if you need anything else at all, we’re here for you, please just reopen
   the ticket or create a new one.
 * Have a good day!
 * Cheers,
    Nastia

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Select2 Bug with width 100%’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/select2-bug-with-width-100/#post-12210540)
 * Status: resolved