From 2ac1bf73029b01d94ca750c2b9aa52821ff6ef97 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 25 Sep 2006 17:06:31 +0000 Subject: Handle image size allocation --- diff --git a/sugar/canvas/Grid.py b/sugar/canvas/Grid.py index 70bafa3..5a48890 100644 --- a/sugar/canvas/Grid.py +++ b/sugar/canvas/Grid.py @@ -63,6 +63,9 @@ class Grid: item.props.height = height - (item.props.line_width - 1) * 2 elif isinstance(item, goocanvas.Text): item.props.width = width + elif isinstance(item, goocanvas.Image): + item.props.width = width + item.props.height = height elif isinstance(item, IconItem): item.props.size = width -- cgit v0.9.1