From e375e1789b5a3b59134743fc2a24b13da4942441 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 10 Mar 2011 11:59:50 -0500 Subject: [PATCH] popupMenu: don't include hidden items in the width computation https://bugzilla.gnome.org/show_bug.cgi?id=621707 --- js/ui/popupMenu.js | 2 ++ 1 file changed, 2 insertions(+) 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++) {