Bootstrap 3.1.0: affix too long

后端 未结 3 599
说谎
说谎 2021-02-10 01:18

I am using Bootstrap 3.1.0. When an \"affix\" gets too long for the viewport, it gets cut off, never showing bottom items.

Is there a possibility to have Bootst

3条回答
  •  误落风尘
    2021-02-10 02:23

    In my case I had a really long sidebar on the left side which i wanted to be scrollable at anytime. For me the solution was even easier than the aforementioned solutions:

    $('[data-spy="affix"]').on('affix.bs.affix', function (e) {
        e.preventDefault();
        return;
    });
    

提交回复
热议问题