Bootstrap-select: Word wrapping on data-subtext if the text is too long

Created on 3 Jul 2017  路  3Comments  路  Source: snapappointments/bootstrap-select

Most helpful comment

Fixed (but it's a hack):

```
.bootstrap-select .dropdown-menu {
width: 100%;
}

.bootstrap-select .dropdown-menu li small {
white-space: normal;
}

All 3 comments

Same problem here in v1.13.1, when adding subtext that is really long, the dropdown menu becomes too wide and the text does not wrap when exceeding the selector's width. I've tried to set data-width attribute, but that doesn't affect the dropdown menu. Spent several hours to implement a hack to get this fixed, but nothing seems to work so far.

screen shot 2018-09-18 at 3 54 10 pm

Fixed (but it's a hack):

```
.bootstrap-select .dropdown-menu {
width: 100%;
}

.bootstrap-select .dropdown-menu li small {
white-space: normal;
}

Fixed (but it's a hack):

.bootstrap-select .dropdown-menu {
  width: 100%;
}

.bootstrap-select .dropdown-menu li small {
  white-space: normal;
}

if fix by this way, data-size not working

Was this page helpful?
0 / 5 - 0 ratings