Open enkhtulga opened 8 years ago
Hi!
On line 59 I changed this :
if (y >= minY) { $bar.css({ 'position': 'fixed', 'top': 0 }); }
To this :
if (y >= minY) { if ($("body").hasClass("admin-bar")) { $bar.css({ 'position': 'fixed', 'top': 32 }); } else { $bar.css({ 'position': 'fixed', 'top': 0 }); } }
The only issue I've got now though is scrolling down is a lil buggy, don't know how to fix that yet. Think I need to specify the extra margin somewhere.
I have implemented this scripts on wordpress but Wordpress admin bar has displayed and i need to calculate it while scrolling up.
If scrolling up works then it has not included wordpress admin bar height. How to include it?
Sorry for my bad english, I hope you understand.
Thanks for your help?