Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Quiñones <manuq@laptop.org>2012-10-23 17:17:23 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2012-10-25 15:35:16 (GMT)
commit990f4ddc177bfff5e24827a2743dd6925d7d99ba (patch)
tree430825b2070d20d5babc9cacc3455ba0588837b2
parentf9288d2a56f4242c0c1a9b745adfcfe45f5848e2 (diff)
Remove gap between the web entry and the autocomplete list
This is a regression from the gecko to webkit port, see commit d50001dc . Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r--webtoolbar.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/webtoolbar.py b/webtoolbar.py
index d99919d..4db684e 100644
--- a/webtoolbar.py
+++ b/webtoolbar.py
@@ -125,9 +125,11 @@ class WebEntry(iconentry.IconEntry):
def _search_popup(self):
miss, window_x, window_y = self.props.window.get_origin()
entry_allocation = self.get_allocation()
+ preferred_height = self.get_preferred_height()[0]
+ gap = (entry_allocation.height - preferred_height) / 2
search_x = window_x + entry_allocation.x
- search_y = window_y + entry_allocation.y + entry_allocation.height
+ search_y = window_y + gap + preferred_height
search_width = entry_allocation.width
search_height = Gdk.Screen.height() / 3