[gnome-maps] SearchPopup: Call columns_autosize on show



commit b4aa85b053b81436186e18af41497267a1a2551a
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Thu Aug 29 09:06:49 2013 +0200

    SearchPopup: Call columns_autosize on show
    
    We want to make sure that the search popup only exceeds its standard
    width when it has to. To avoid a larger popup for the spinner.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706891

 src/searchPopup.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/searchPopup.js b/src/searchPopup.js
index da269a1..44dc0d2 100644
--- a/src/searchPopup.js
+++ b/src/searchPopup.js
@@ -116,13 +116,17 @@ const SearchPopup = new Lang.Class({
         if (this._spinner.active)
             this._spinner.stop();
 
-        this._treeView.columns_autosize();
         this._stack.set_visible_child(this._treeView);
 
         if (!this.get_visible())
             this.show();
     },
 
+    vfunc_show: function() {
+        this._treeView.columns_autosize();
+        this.parent();
+    },
+
     vfunc_hide: function() {
         if (this._spinner.active)
             this._spinner.stop();


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