[gnome-shell] modalDialog: The dialog layout should expand, not the buttons



commit 3bb330fcc467d82f9133cda739961a4110fc5ec2
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Aug 12 14:40:46 2013 -0400

    modalDialog: The dialog layout should expand, not the buttons
    
    https://bugzilla.gnome.org/show_bug.cgi?id=705916

 js/ui/modalDialog.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/modalDialog.js b/js/ui/modalDialog.js
index d400b5a..40a6968 100644
--- a/js/ui/modalDialog.js
+++ b/js/ui/modalDialog.js
@@ -95,7 +95,8 @@ const ModalDialog = new Lang.Class({
 
         this.contentLayout = new St.BoxLayout({ vertical: true });
         this.dialogLayout.add(this.contentLayout,
-                              { x_fill:  true,
+                              { expand:  true,
+                                x_fill:  true,
                                 y_fill:  true,
                                 x_align: St.Align.MIDDLE,
                                 y_align: St.Align.START });
@@ -103,8 +104,7 @@ const ModalDialog = new Lang.Class({
         this.buttonLayout = new St.BoxLayout({ style_class: 'modal-dialog-button-box',
                                                vertical: false });
         this.dialogLayout.add(this.buttonLayout,
-                              { expand:  true,
-                                x_align: St.Align.MIDDLE,
+                              { x_align: St.Align.MIDDLE,
                                 y_align: St.Align.END });
 
         global.focus_manager.add_group(this.dialogLayout);


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