diff --git a/jquery-scrolltofixed.js b/jquery-scrolltofixed.js index c885f73..dc2771c 100644 --- a/jquery-scrolltofixed.js +++ b/jquery-scrolltofixed.js @@ -141,6 +141,9 @@ } if (!base.options.dontSetWidth){ cssOptions['width']=target.width(); }; + //Set width to fix responsive, specially for Twitter bootstrap 3 + cssOptions['width']=target.outerWidth(true)+'px'; + target.css(cssOptions); target.addClass('scroll-to-fixed-fixed');