Merge pull request #793 from prateek-webkul/development

issue fixed #791
This commit is contained in:
Jitendra Singh 2019-04-04 11:56:34 +05:30 committed by GitHub
commit 8ac9c7b8ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
{
"/js/admin.js": "/js/admin.js?id=2abf9e6a7eff4fd6fcf2",
"/js/admin.js": "/js/admin.js?id=023cc2617cd2c87483ac",
"/css/admin.css": "/css/admin.css?id=a71a72c31d6ac0fe375f"
}

View File

@ -30,6 +30,8 @@ window.onload = function () {
if (menubarHeight > documentHeight && menubarHeight > windowHeight) {
$('.inner-section').css("position", "fixed");
$('.navbar-left').css("position", "absolute");
} else if (menubarHeight < windowHeight) {
$('.navbar-left').css("position", "fixed");
} else {
if (scrollTopWhenWindowLoaded > differenceInHeight) {
$('.navbar-left').css('top', -differenceInHeight + 'px');
@ -43,7 +45,7 @@ window.onload = function () {
scrollTopValueWhenNavBarFixed = $(document).scrollTop();
}
});
} else if(menubarHeight < windowHeight) {
} else if (menubarHeight < windowHeight) {
$(document).scroll(function() {
documentScrollWhenScrolled = $(document).scrollTop();
if (documentScrollWhenScrolled <= differenceInHeight + 70) {