[gnome-maps] SearchPopup: Fix content height
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] SearchPopup: Fix content height
- Date: Fri, 28 Nov 2014 07:21:22 +0000 (UTC)
commit a82709adb6df27a2ac3c9990642312ac37c3aea4
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Fri Nov 28 02:21:11 2014 -0500
SearchPopup: Fix content height
src/searchPopup.js | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/searchPopup.js b/src/searchPopup.js
index a48553d..2de9107 100644
--- a/src/searchPopup.js
+++ b/src/searchPopup.js
@@ -60,9 +60,8 @@ const SearchPopup = new Lang.Class({
row.set_header(null);
});
- // NOTE: the magic number 3 makes the scrolled window height be exactly
- // aligned with 6 rows.
- this._scrolledWindow.min_content_height = numVisible * PlaceListRow.ROW_HEIGHT + 3;
+ let rowHeight = PlaceListRow.ROW_HEIGHT + 6; // For the header
+ this._scrolledWindow.min_content_height = numVisible * rowHeight;
},
showSpinner: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]