From 361652d028a330c13005a113a5ee6e392fe249dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 19 Sep 2011 21:56:49 +0200 Subject: [PATCH] popup-menu: Use correct St.Align values It is not St.Align.CENTER, but St.Align.MIDDLE - in contrast to St.TextAlign, where it *is* CENTER. Yay consistency! --- js/ui/popupMenu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index 490228a1f..ac831e23d 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -313,7 +313,7 @@ PopupBaseMenuItem.prototype = { if (child.expand) { childBox.x1 = x; childBox.x2 = x + availWidth; - } else if (child.align === St.Align.CENTER) { + } else if (child.align === St.Align.MIDDLE) { childBox.x1 = x + Math.round(extraWidth / 2); childBox.x2 = childBox.x1 + naturalWidth; } else if (child.align === St.Align.END) { @@ -327,7 +327,7 @@ PopupBaseMenuItem.prototype = { if (child.expand) { childBox.x1 = x - availWidth; childBox.x2 = x; - } else if (child.align === St.Align.CENTER) { + } else if (child.align === St.Align.MIDDLE) { childBox.x1 = x - Math.round(extraWidth / 2); childBox.x2 = childBox.x1 + naturalWidth; } else if (child.align === St.Align.END) {