summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Danielsson <jonas@threetimestwo.org>2015-08-21 20:46:42 +0200
committerJonas Danielsson <jonas@threetimestwo.org>2015-08-21 20:46:42 +0200
commitb0d6a75468b5d75ab216ffea861305c27d089cf4 (patch)
tree757da40f0a8b2087b79b9e14dc57cacfbdeecb52
parentf212ed395a8149dc8ba0b55bdcc695c0f99d4ef2 (diff)
downloadgnome-maps-b0d6a75468b5d75ab216ffea861305c27d089cf4.tar.gz
Fix up search list pixels
-rw-r--r--src/placeListRow.js2
-rw-r--r--src/searchPopup.js5
2 files changed, 3 insertions, 4 deletions
diff --git a/src/placeListRow.js b/src/placeListRow.js
index df7b3fa4..aeefba76 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 0963cb6e..dd33ae1b 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.