diff options
author | Jonas Danielsson <jonas@threetimestwo.org> | 2015-08-21 20:46:42 +0200 |
---|---|---|
committer | Jonas Danielsson <jonas@threetimestwo.org> | 2015-08-21 20:46:42 +0200 |
commit | b0d6a75468b5d75ab216ffea861305c27d089cf4 (patch) | |
tree | 757da40f0a8b2087b79b9e14dc57cacfbdeecb52 | |
parent | f212ed395a8149dc8ba0b55bdcc695c0f99d4ef2 (diff) | |
download | gnome-maps-b0d6a75468b5d75ab216ffea861305c27d089cf4.tar.gz |
Fix up search list pixels
-rw-r--r-- | src/placeListRow.js | 2 | ||||
-rw-r--r-- | src/searchPopup.js | 5 |
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. |