Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/canvas/Grid.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar/canvas/Grid.py')
-rw-r--r--sugar/canvas/Grid.py3
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