You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 9, 2019. It is now read-only.
If the page is narrow, the side bar .xs3p-sidebar goes to the top and the content is below. When I scroll the page it scrolls down normally.
If I resize the browser window to a wide size, the .xs3p-sidebar becomes fixed and doesn't scroll anymore. If its content is bigger than the windows size, it becomes impossible to access all the content in the side bar.
I believe the error is in the piece of code below, but I couldn't solve it:
$(window).scroll(function() {
if ($(".xs3p-sidebar").css("position") == "fixed" && $(window).height() < $(".xs3p-sidebar").height()) {
var perc = $(window).scrollTop() / $("#xs3p-content").height();
var overflow = $(".xs3p-sidebar").height() + 105 - $(window).height();
$(".xs3p-sidebar").css("top", (65 - Math.round(overflow * perc)) + "px");
}
});
I'm viewing my xsd schema file in Mozilla Firefox version 53 and processing it just adding the tag as the second line of my schema file.