[gnome-shell] popup-menu: Use correct St.Align values



commit 361652d028a330c13005a113a5ee6e392fe249dd
Author: Florian MÃllner <fmuellner gnome org>
Date:   Mon Sep 19 21:56:49 2011 +0200

    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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index 490228a..ac831e2 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) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]