mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Fix search bar shadow when it's not fixed due to scrolling yet
This closes #3113.
This commit is contained in:
@@ -25,11 +25,11 @@ function registerOnScrollEvent(mediaQuery) {
|
||||
$navbar.scroll(function() {
|
||||
if ($(this).scrollTop() >= scrollTopPixels) {
|
||||
$logo.hide();
|
||||
$search.css('position', 'fixed');
|
||||
$search.addClass('fixed');
|
||||
$menu.css('margin-top', menuTopMargin);
|
||||
} else {
|
||||
$logo.show();
|
||||
$search.css('position', 'static');
|
||||
$search.removeClass('fixed');
|
||||
$menu.css('margin-top', 0);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user