loleaflet/src/control/Control.Menubar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit f9aa0d61bc559cbfda28e80db9a6eecb4ae542d5 Author: Michael Meeks <michael.me...@collabora.com> AuthorDate: Thu Jan 9 16:23:32 2020 +0000 Commit: Michael Meeks <michael.me...@collabora.com> CommitDate: Thu Jan 9 16:23:32 2020 +0000 mobile: stop disabled menu items from breaking hamburger menu. Change-Id: I0e98dbd853c0120e325f9558b7285392de615a84 diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js index 063e43988..fe28ce9a6 100644 --- a/loleaflet/src/control/Control.Menubar.js +++ b/loleaflet/src/control/Control.Menubar.js @@ -1471,7 +1471,9 @@ L.Control.Menubar = L.Control.extend({ for (var i = 0; i < items.length; i++) { if (this._checkItemVisibility(items[i]) === true) { - topMenu.children.push(this._generateMenuStructure(items[i], docType, false)); + var item = this._generateMenuStructure(items[i], docType, false); + if (item) + topMenu.children.push(item); } } return topMenu; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits