mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-19 01:15:04 -05:00
Menu: Fixed frontend menu 'Extended' option, resetting heights of wrapping containers not necessarily related to the menu itself (fixes #2025)
This commit is contained in:
@@ -259,7 +259,12 @@ var Menu = new prime({
|
||||
|
||||
if (isGoingBack) {
|
||||
parents = parent.parents('[style^="height"]');
|
||||
(parents || []).forEach(function(element) { element.style.height = heights.from.height + 'px'; });
|
||||
(parents || []).forEach(function(element) {
|
||||
element = $(element);
|
||||
if (element.parent('.g-toplevel')) {
|
||||
element[0].style.height = heights.from.height + 'px';
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (!isGoingBack) {
|
||||
@@ -268,7 +273,12 @@ var Menu = new prime({
|
||||
parent[0].style.height = height + 'px';
|
||||
|
||||
parents = parent.parents('[style^="height"]');
|
||||
(parents || []).forEach(function(element) { element.style.height = height + 'px'; });
|
||||
(parents || []).forEach(function(element) {
|
||||
element = $(element);
|
||||
if (element.parent('.g-toplevel')) {
|
||||
element[0].style.height = height + 'px';
|
||||
}
|
||||
});
|
||||
} else if (isNavMenu) {
|
||||
sublevel[0].style.height = height + 'px';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user