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): |
78 | 78 | # This container may be offset from the top by a certain amount |
79 | 79 | # (e.g. for a toolbar at the top of the screen). Adjust the |
80 | 80 | # center-point for that |
81 | | y -= allocation.y |
| 81 | y -= 54 # 54 pixels is the height of the main toolbar |
82 | 82 | |
83 | 83 | # Now subtract half of the owner height. This gives us the y |
84 | 84 | # coordinate for the top of the owner icon. |