[gnome-maps] Fix up search list pixels



commit b0d6a75468b5d75ab216ffea861305c27d089cf4
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Fri Aug 21 20:46:42 2015 +0200

    Fix up search list pixels

 src/placeListRow.js |    2 +-
 src/searchPopup.js  |    5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/placeListRow.js b/src/placeListRow.js
index df7b3fa..aeefba7 100644
--- a/src/placeListRow.js
+++ b/src/placeListRow.js
@@ -24,7 +24,7 @@ const Lang = imports.lang;
 const PlaceFormatter = imports.placeFormatter;
 const PlaceStore = imports.placeStore;
 
-const ROW_HEIGHT = 50;
+const ROW_HEIGHT = 55;
 
 const PlaceListRow = new Lang.Class({
     Name: 'PlaceListRow',
diff --git a/src/searchPopup.js b/src/searchPopup.js
index 0963cb6..dd33ae1 100644
--- a/src/searchPopup.js
+++ b/src/searchPopup.js
@@ -27,7 +27,6 @@ const PlaceListRow = imports.placeListRow;
 const PlaceStore = imports.placeStore;
 
 const _PLACE_ICON_SIZE = 20;
-const _ROW_HEIGHT = 50;
 
 const Mode = {
     IDLE: 0, // Nothing going on
@@ -98,8 +97,8 @@ const SearchPopup = new Lang.Class({
                 row.set_header(null);
         });
 
-        let rowHeight = PlaceListRow.ROW_HEIGHT + 6; // For the header
-        this._scrolledWindow.min_content_height = numVisible * rowHeight;
+        let rowHeight = PlaceListRow.ROW_HEIGHT;
+        this._scrolledWindow.min_content_height = numVisible * rowHeight + 6;
 
         // This silents warning at Maps exit about this widget being
         // visible but not mapped.


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