diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-09-25 17:06:31 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-09-25 17:06:31 (GMT) |
commit | 2ac1bf73029b01d94ca750c2b9aa52821ff6ef97 (patch) | |
tree | 0cccb41345f0a6fd1bf2a27f17903b34756c62b1 | |
parent | d63180c4f402f16629006d699004df93ac685179 (diff) |
Handle image size allocation
-rw-r--r-- | sugar/canvas/Grid.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |