GithubHelp home page GithubHelp logo

Comments (11)

maduhaime avatar maduhaime commented on April 30, 2024

Maybe a non breakable space after __SELECTED_OPTION in your template!

from bootstrap-select.

silviomoreto avatar silviomoreto commented on April 30, 2024

I will do that maduhaime, but not exactly that. I will make the selectpicker import the classes from select, so you can apply the span classes from bootstrap and bootstrap-select will react to that.

I need couple days to finish that...

If it is urgent you can change the css width of the a.dropdown-toggle by now..

from bootstrap-select.

silviomoreto avatar silviomoreto commented on April 30, 2024

maduhaime, I did that.

Try this: <select class"selectpicker span3"></select>

It solves your problem?

from bootstrap-select.

maduhaime avatar maduhaime commented on April 30, 2024

No. It is not solving the problem. On document load, if an option is already selected, the space is perfect. The gap is reduced when a use change to another option. (under Firefox). I didn't test under other browser!

from bootstrap-select.

maduhaime avatar maduhaime commented on April 30, 2024

Can I send you a screenshot by email^

from bootstrap-select.

silviomoreto avatar silviomoreto commented on April 30, 2024

This is an issue from bootstrap... you can solve it in three ways:

  • Adding a custom with in css: a.dropdown-toggle { width: 100px; }
  • Add a span class to your select: <select class"selectpicker span3"></select>
  • Add a margin left in carret: span.caret { margin-left: 10px; }

I hope now it solves your problem

from bootstrap-select.

maduhaime avatar maduhaime commented on April 30, 2024

Thanks! The margin to the caret is probably the nicest solution (I my case). The content of the dropdown is generated by my application (Rails). I cannot set a fixed width.

I was previously developing with jQuery-UI and I was using plugins for select-menu and file-input. Those cosmetic element are still missing in Bootstrap.

Also, it was very easy to create nice buttons from group of or checkboxes. I'm still searching for solutions to replicate this.

I will have a closer look at your code. Maybe it will inspire me to develop new fonctionality!

Thanks again!

Marc

On 2012-11-23, at 2:57 PM, Silvio Moreto [email protected] wrote:

This is an issue from bootstrap... you can solve it in three ways:

Adding a custom with in css: a.dropdown-toggle { width: 100px; }
Add a span class to your select: <select class"selectpicker span3">
Add a margin left in carret: span.caret { margin-left: 10px; }
I hope now it solves your problem


Reply to this email directly or view it on GitHub.

from bootstrap-select.

silviomoreto avatar silviomoreto commented on April 30, 2024

You are welcome. Please take a look at the code and if you find a bug, please open a issue!
Usually, when I need to custom a checkbox I use this lib: http://uniformjs.com/

from bootstrap-select.

vlsg avatar vlsg commented on April 30, 2024

I have version 1.11.2 of bootstrap-select and I also have this problem. I attempted all of the css changes you suggested on 11/23/12 but none of them worked. Since no doubt a lot has changed in the past 5 yrs, do you have updated advice about how to make the button "title" not overlap the bs-caret? TIA

from bootstrap-select.

etlel avatar etlel commented on April 30, 2024

The space is absent for input-group-lg and input-group-sm classes, so I added the following:

.input-group-lg .bootstrap-select .filter-option{ padding-right:10px; }

.input-group-sm .bootstrap-select .filter-option{ padding-right:15px; }

from bootstrap-select.

vivek-kandhvar avatar vivek-kandhvar commented on April 30, 2024

This issue is seen again in 1.13.16. Is anyone aware of this yet?

from bootstrap-select.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.