Allan
Well-known member
I use this script for an add-on:
But it breaks the loader popup to xenforo:
In that example, i click on username "Admin".
An idea please ?
Code:
<script type='text/javascript' src='http://code.jquery.com/jquery-1.11.1.min.js'></script>
<script type="text/javascript">
$(function() {
var offset = $("#sidebar").offset();
var topPadding = 15;
$(window).scroll(function() {
if ($(window).scrollTop() > offset.top) {
$("#sidebar").stop().animate({
marginTop: $(window).scrollTop() - offset.top + topPadding
});
} else {
$("#sidebar").stop().animate({
marginTop: 0
});
};
});
});
</script>
But it breaks the loader popup to xenforo:
In that example, i click on username "Admin".
An idea please ?