From dd6c3fd0fe669152386f0128597225e203fab734 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sat, 16 Sep 2006 14:47:25 +0200 Subject: [PATCH] s/rows/cols --- sugar/canvas/MenuIcon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sugar/canvas/MenuIcon.py b/sugar/canvas/MenuIcon.py index 7bcfcfeb..f7c6ddc2 100644 --- a/sugar/canvas/MenuIcon.py +++ b/sugar/canvas/MenuIcon.py @@ -51,7 +51,7 @@ class MenuIcon(IconItem): [grid_x2, grid_y2] = grid.convert_from_screen(x2, y2) grid_x = grid_x2 + distance - if grid_x + self._menu.get_width() > Grid.ROWS: + if grid_x + self._menu.get_width() > Grid.COLS: grid_x = grid_x1 - self._menu.get_width() + 1 - distance grid_y = grid_y1