I have a skuid page for salesforce lightening. I have custom JavaScript for sticky header. It works on skuid-preview page, but doesn’t work on salesforce lightning. Has any one encounter this problem ?
Below is my sample code:
(function(skuid){
var $ = skuid.$;
var j$ = jQuery.noConflict();
$(document.body).one(‘pageload’,function(){
var j$ = jQuery.noConflict();
j$(document).ready(function(){
var navOffset= j$(“.scrolling”).offset().top;
console.log(navOffset);
j$(window).scroll(function()
{
var scrollPos= j$(window).scrollTop();
console.log(scrollPos);
if (scrollPos>=navOffset)
{
j$(“.scrolling”).addClass(“fixed”);
}
else
{
j$(“.scrolling”).removeClass(“fixed”);
}
});
});
});
})(skuid);
Question
Sticky Header issue in Salesforce Lightening
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
