From 990f4ddc177bfff5e24827a2743dd6925d7d99ba Mon Sep 17 00:00:00 2001 From: Manuel QuiƱones Date: Tue, 23 Oct 2012 17:17:23 +0000 Subject: 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 Acked-by: Simon Schampijer --- (limited to 'webtoolbar.py') 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 -- cgit v0.9.1