diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index d6eaf8e93..887fb41f2 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -824,6 +824,8 @@ PopupMenuBase.prototype = { let columnWidths = []; let items = this.box.get_children(); for (let i = 0; i < items.length; i++) { + if (!items[i].visible) + continue; if (items[i]._delegate instanceof PopupBaseMenuItem || items[i]._delegate instanceof PopupMenuBase) { let itemColumnWidths = items[i]._delegate.getColumnWidths(); for (let j = 0; j < itemColumnWidths.length; j++) {