I’m having a few issues with setting the height of a div once the page has been resized and the button has been pressed for the navigation.
From the code bellow I believe should work. It does not even show a alert when the navbar is re-sized and button clicked.
if ($('.nav-collapse').height() > 2) {
alert("hello");
$(".navBarJquery").css({
"top": pos.top,
"height": hei
});
}
Added a background-color to .navbar-inner instead of trying to track it with jquery and add a background in with it.