Skip to content

Commit b287cd5

Browse files
committed
issue doxygen#12249 HTML mobile view: expanding and closing the hamburger menu creates a gap at the bottom.
- add missing resize call - remove delay wen "slideUp" as it gave a strange jump of the bottom breadcrumb
1 parent 5158ee6 commit b287cd5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

templates/html/menu.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ function initMenu(relPath,treeview) {
2727
const SHOW_DELAY = 250; // 250ms delay before showing
2828
const HIDE_DELAY = 500; // 500ms delay before hiding
2929
const SLIDE_DELAY = 250; // 250ms slide up/down delay
30+
const SLIDE_DELAY_MAIN = 0; // 0ms slide up/down delay for main menu
3031
const WHEEL_STEP = 30; // 30 pixel per mouse wheel tick
3132
const ARROW_STEP = 5; // 5 pixel when hovering arrow up/down
3233
const ARROW_POLL_INTERVAL = 20; // 20ms per arrow up/down check
@@ -138,8 +139,9 @@ function initMenu(relPath,treeview) {
138139
initResizableIfExists();
139140
});
140141
} else {
141-
slideUp(mainMenu, SLIDE_DELAY, () => {
142+
slideUp(mainMenu, SLIDE_DELAY_MAIN, () => {
142143
mainMenu.style.display = 'none';
144+
initResizableIfExists();
143145
});
144146
}
145147
});

0 commit comments

Comments
 (0)