I use bootstap Modal and Bootstrap tabs and i want to achieve the tabdrop, when the Modal window loads the tabs are not grouped even they overflow $('.nav-tabs').tabdrop({text: "More"});
but when i resize the browser window it works, what could be the problem in this case?
Asked
Active
Viewed 865 times
2

Wissem Achour
- 177
- 1
- 3
- 13
2 Answers
0
I have a same issues, but as i can see on demo site it is working ok, maybe the problem is with your other scripts. Try to add this only on tablest, like this
var width = $(window).width(), height = $(window).height();
if (width <= 768) {
$(window).trigger('resize');
}

Miomir Dancevic
- 6,726
- 15
- 74
- 142
0
Use setTimeOut to call TabDrop method. It will work in all browsers. No need to call resize manually.
setTimeout(function () {
$('.sub-categories').tabdrop({
text: "More"
});
},100);

RealDeepak
- 823
- 6
- 9