Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webtoolbar.py
diff options
context:
space:
mode:
Diffstat (limited to 'webtoolbar.py')
-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