mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix #4030: #search-menu-nav required in theme view layout main
This commit is contained in:
parent
e78d80ee40
commit
feaa54e6fa
@ -10,6 +10,7 @@ HumHub Change Log
|
||||
- Fix #4036: Uploaded photos are not rotated correctly
|
||||
- Fix #4078: Richtext linkextension pattern fails on link extensions with containing `)` in link title
|
||||
- Fix #4080: Invalid absolute urls created in acceptance tests
|
||||
- Fix #4030: #search-menu-nav required in theme view layout main
|
||||
|
||||
1.5.1 (April 19, 2020)
|
||||
----------------------
|
||||
|
@ -48,11 +48,12 @@ humhub.module('ui.topNavigation', function (module, require, $) {
|
||||
};
|
||||
|
||||
var isOverflow = function() {
|
||||
return $topNav[0].offsetHeight > $topBarSecond[0].offsetHeight || $('.search-menu')[0].offsetTop;
|
||||
$searchMenu = $('.search-menu');
|
||||
return $topNav[0].offsetHeight > $topBarSecond[0].offsetHeight || ($searchMenu.length && $searchMenu[0].offsetTop);
|
||||
};
|
||||
|
||||
module.export({
|
||||
init: init,
|
||||
sortOrder: 100,
|
||||
})
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user