From 2ac1bf73029b01d94ca750c2b9aa52821ff6ef97 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 25 Sep 2006 19:06:31 +0200 Subject: [PATCH] Handle image size allocation --- sugar/canvas/Grid.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sugar/canvas/Grid.py b/sugar/canvas/Grid.py index 70bafa38..5a488905 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