From 6ee8067b0664a87f83bb7df11cb1b6ebf1be1bb4 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 15 Feb 2007 20:32:25 +0100 Subject: [PATCH] Temporary fix until the next hippo-canvas. --- sugar/graphics/optionmenu.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sugar/graphics/optionmenu.py b/sugar/graphics/optionmenu.py index 11179dbb..13072f18 100644 --- a/sugar/graphics/optionmenu.py +++ b/sugar/graphics/optionmenu.py @@ -150,7 +150,8 @@ class OptionMenu(hippo.CanvasBox, hippo.CanvasItem): self._menu.hide() else: context = self._round_box.get_context() - [x, y] = context.translate_to_screen(self._round_box) + #[x, y] = context.translate_to_screen(self._round_box) + [x, y] = context.translate_to_widget(self._round_box) [width, height] = self._round_box.get_allocation() self._menu.props.box_width = self.get_width_request() self._menu.show(x, y + height)