Updated check for button vizability instead of window width.

This commit is contained in:
Matthew Aguirre
2016-06-24 15:45:57 -04:00
committed by Michael Rose
parent 677fded9e4
commit 8fcfead2a2
2 changed files with 4 additions and 5 deletions
+3 -4
View File
@@ -11,16 +11,15 @@ $(document).ready(function(){
$(".sticky").Stickyfill();
var stickySideBar = function(){
var windowWidth = $(window).width();
if (windowWidth > 1024) {
if (!$(".author__urls-wrapper button").is(":visible")) {
// fix
Stickyfill.rebuild();
Stickyfill.init();
$(".author__urls").show()
$(".author__urls").show();
} else {
// unfix
Stickyfill.stop();
$(".author__urls").hide()
$(".author__urls").hide();
}
};
+1 -1
View File
File diff suppressed because one or more lines are too long