Ticket #4049: 0001-Remove-gap-between-the-web-entry-and-the-autocomplet.patch

File 0001-Remove-gap-between-the-web-entry-and-the-autocomplet.patch, 1.3 KB (added by manuq, 11 years ago)

Remove gap.

  • webtoolbar.py

    From 7e8b5cf63b5a0ee998d187f5406314c59913e718 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Tue, 23 Oct 2012 14:17:23 -0300
    Subject: [PATCH browse] Remove gap between the web entry and the autocomplete
     list
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    This is a regression from the gecko to webkit port, see commit
    d50001dc .
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     webtoolbar.py | 4 +++-
     1 file changed, 3 insertions(+), 1 deletion(-)
    
    diff --git a/webtoolbar.py b/webtoolbar.py
    index d99919d..4db684e 100644
    a b class WebEntry(iconentry.IconEntry): 
    125125    def _search_popup(self):
    126126        miss, window_x, window_y = self.props.window.get_origin()
    127127        entry_allocation = self.get_allocation()
     128        preferred_height = self.get_preferred_height()[0]
     129        gap = (entry_allocation.height - preferred_height) / 2
    128130
    129131        search_x = window_x + entry_allocation.x
    130         search_y = window_y + entry_allocation.y + entry_allocation.height
     132        search_y = window_y + gap + preferred_height
    131133        search_width = entry_allocation.width
    132134        search_height = Gdk.Screen.height() / 3
    133135