Ticket #3925: 0001-Recalculate-the-position-of-the-owner-SL-3925.patch

File 0001-Recalculate-the-position-of-the-owner-SL-3925.patch, 1.1 KB (added by humitos, 11 years ago)

An approach to this fix. The value is hardcoded and that doesn't look good :)

  • src/jarabe/desktop/favoriteslayout.py

    From 2b390fae36efae139540faf13be9f7ed96e96c95 Mon Sep 17 00:00:00 2001
    From: Manuel Kaufmann <humitos@gmail.com>
    Date: Fri, 23 Nov 2012 11:55:33 -0300
    Subject: [PATCH sugar] Recalculate the position of the owner SL #3925
    
    When an Alert is shown the position of the owner is re-calculated to
    be consistent with the re-positioning of the icons.
    
    Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
    ---
     src/jarabe/desktop/favoriteslayout.py | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/jarabe/desktop/favoriteslayout.py b/src/jarabe/desktop/favoriteslayout.py
    index 635a534..6ad5a21 100644
    a b class ViewLayout(Layout): 
    7878        # This container may be offset from the top by a certain amount
    7979        # (e.g. for a toolbar at the top of the screen). Adjust the
    8080        # center-point for that
    81         y -= allocation.y
     81        y -= 54  # 54 pixels is the height of the main toolbar
    8282
    8383        # Now subtract half of the owner height. This gives us the y
    8484        # coordinate for the top of the owner icon.