[gnome-shell] popupMenu: don't include hidden items in the width computation
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] popupMenu: don't include hidden items in the width computation
- Date: Mon, 14 Mar 2011 13:28:29 +0000 (UTC)
commit e375e1789b5a3b59134743fc2a24b13da4942441
Author: Dan Winship <danw gnome org>
Date: Thu Mar 10 11:59:50 2011 -0500
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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index d6eaf8e..887fb41 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++) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]