Fix dragging clipboard objects out from the frame.

This commit is contained in:
Tomeu Vizoso 2007-08-18 18:35:45 +02:00
parent 5741d21be9
commit e0785e7aab

View File

@ -75,7 +75,7 @@ class ClipboardBox(hippo.CanvasBox):
return self._owns_clipboard return self._owns_clipboard
def _get_icon_at_coords(self, x, y): def _get_icon_at_coords(self, x, y):
box_x, box_y = self.get_context().get_position(self) box_x, box_y = self.get_context().translate_to_widget(self)
x -= box_x x -= box_x
y -= box_y y -= box_y
for object_id, icon in self._icons.iteritems(): for object_id, icon in self._icons.iteritems():