[gnome-maps] SearchPopup: pixel-perfect height



commit be280cffb2f54efcd609ed7417fc646f0e6ba095
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date:   Fri Nov 21 17:17:12 2014 +0100

    SearchPopup: pixel-perfect height

 src/searchPopup.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/searchPopup.js b/src/searchPopup.js
index a35e337..baac607 100644
--- a/src/searchPopup.js
+++ b/src/searchPopup.js
@@ -107,7 +107,9 @@ const SearchPopup = new Lang.Class({
                 row.set_header(null);
         });
 
-        this._scrolledWindow.min_content_height = numVisible * _ROW_HEIGHT;
+        // NOTE: the magic number 3 makes the scrolled window height be exactly
+        //       aligned with 6 rows.
+        this._scrolledWindow.min_content_height = numVisible * _ROW_HEIGHT + 3;
     },
 
     showSpinner: function() {


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