Forum

select2, fixed drop...
 
Notifications
Clear all

select2, fixed dropdown width, left expand

1 Posty
1 Users
0 Reactions
1,568 Widok
0
Topic starter

ready to use example

1 Answer
0
Topic starter
1
2
3
4
5
6
      $(".my_select2").select2({
            language: "pl",
            theme: "bootstrap",
            width: '100%',
            dropdownCssClass : 'bigdrop'
        });
      $(".my_select2").select2({
            language: "pl",
            theme: "bootstrap",
            width: '100%',
            dropdownCssClass : 'bigdrop'
        });
1
2
3
4
5
6
.bigdrop {
    width: 600px !important;
}
.select2-dropdown--below{
    margin-left: -552px;
}
.bigdrop {
    width: 600px !important;
}
.bigdrop.select2-dropdown--below{
    margin-left: -552px;
}

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: