ブートストラップ接辞プラグインを使用しようとしていますが、スクロールを止める方法がわかりません。これが私がやろうとしていることの例です。http://www.bootply.com/F6daY1KXoJ
ここで説明されている手法を使用しようとしました: http://codepen.io/henrylfan/pen/HBnrJただし、添付されたアイテムと同じ親にない「底」を参照する場合は機能しません。
//select a referenced box for bottom alignment
var bottomReferenceBox = $('.reference-box');
//calculate the bottom position
var bottomOffLine = $(document).height() - bottomReferenceBox.offset().top - bottomReferenceBox.outerHeight();
$('.affix').affix({
offset: {
top: 100,
bottom: bottomOffLine
}
})