This is a common problem with fixed
elements since CSS position:fixed
removes the element from the page flow. The fixed
element is no longer relative to it's container and neighboring elements.
In your case, the width of the fixed
toolbar element is the problem. You could use jQuery to hook into the affix
plugin events. The first event gets the width of the toolbar just before it gets affixed, and the 2nd event sets the width once the toolbar is affixed..
var myWidth;
$('#content-library-toolbar').bind('affix.bs.affix', function () {
myWidth = $(this).width();
});
$('#content-library-toolbar').bind('affixed.bs.affix', function () {
$(this).width(myWidth);
});