Extra padding when increasing height of main menu
Hello, I was testing the hook_civicrm_getAssetUrl
hook introduced in this PR to increase the height of the main menu (this is on Civi v.5.15.1
)
function myext_civicrm_getAssetUrl(&$asset, &$params) {
if ($asset == 'crm-menubar.css') {
$params['height'] = 60;
}
}
The hook works, but I'm getting some extra spacing between the menu and the rest of the page, caused by the .crm-menubar-wrapped
class
I see that that class is added via JS only if the height of the menu is higher than 50 pixels, but i'm not sure why
function handleResize() {
if ($(window).width() >= 768 && $('#civicrm-menu').height() > 50) {
$('body').addClass('crm-menubar-wrapped');
} else {
$('body').removeClass('crm-menubar-wrapped');
}
}
Is this working as expected? Anything that I'm missing?