[gnome-shell] networkAgent: Remove height-for-width hack



commit c37c4d8c6d3bd830fb02fd13239610ad1e958630
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jul 11 16:21:53 2013 +0200

    networkAgent: Remove height-for-width hack
    
    ClutterBoxLayout has proper height-for-width support, so make use
    of it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=704015

 js/ui/components/networkAgent.js |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/js/ui/components/networkAgent.js b/js/ui/components/networkAgent.js
index 13f9e31..c83782f 100644
--- a/js/ui/components/networkAgent.js
+++ b/js/ui/components/networkAgent.js
@@ -62,14 +62,9 @@ const NetworkSecretDialog = new Lang.Class({
 
         if (this._content.message != null) {
             let descriptionLabel = new St.Label({ style_class: 'prompt-dialog-description',
-                                                  text: this._content.message,
-                                                  // HACK: for reasons unknown to me, the label
-                                                  // is not asked the correct height for width,
-                                                  // and thus is underallocated
-                                                  // place a fixed height to avoid overflowing
-                                                  style: 'height: 3em'
-                                                });
+                                                  text: this._content.message });
             descriptionLabel.clutter_text.line_wrap = true;
+            descriptionLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
 
             messageBox.add(descriptionLabel,
                            { y_fill:  true,


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