Adapt to the new hippo canvas sizing API

This commit is contained in:
Marco Pesenti Gritti
2007-03-14 03:19:24 +01:00
parent 9d8fa7d42a
commit 4960ddae25
4 changed files with 14 additions and 24 deletions
+3 -1
View File
@@ -32,7 +32,9 @@ class FramePopupContext(PopupContext):
def get_position(self, control, popup):
[item_x, item_y] = control.get_context().translate_to_screen(control)
[item_w, item_h] = control.get_allocation()
[popup_w, popup_h] = popup.get_request()
[popup_w, natural_w] = popup.get_width_request()
[popup_h, natural_h] = popup.get_height_request(popup_w)
left_x = item_x + item_w
left_y = item_y