Comments (11)
Maybe a non breakable space after __SELECTED_OPTION in your template!
from bootstrap-select.
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.
maduhaime, I did that.
Try this: <select class"selectpicker span3"></select>
It solves your problem?
from bootstrap-select.
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.
Can I send you a screenshot by email^
from bootstrap-select.
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.
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.
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.
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.
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.
This issue is seen again in 1.13.16. Is anyone aware of this yet?
from bootstrap-select.
Related Issues (20)
- v1.14.0-beta3 file without "dist" directory HOT 1
- Layout/colors and form floating (bootstrap 5)
- Overlayproblem
- Missing empty line at the end of bootstrap-select.js
- it works very well (bootstrap-select-v1.14.0-beta3-updated and bootstrap 5.3.0) HOT 18
- Opening dropdown does not scroll to selected option first time, but does second time HOT 4
- Select with icon HOT 4
- Button onclick not working in latest version, worked fine in 1.12.4
- [email protected] not working with Bootstrap 5.3.2 HOT 4
- data-selected-text-format after render or refresh
- ADA improvements for Select/deselect all options
- Name of Ukrainian language file is wrong.
- Select does not display in dropdown-menu HOT 1
- is there any feature like select all HOT 1
- Unable to have noneSelectedText with HTML with latest version
- doneButtonText not in i18n files and no longer adjustable via Javascript defaults
- SweetAlert2 - bootstrap select dropdown appears behind/cutoff parent div border HOT 1
- Error when have a class attribute for optgroup tag
- wrong preview for > in <select class="form-control mobileSelect"> in Safari
- Turkish Case Sensitive
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrap-select.