Handle image size allocation

This commit is contained in:
Marco Pesenti Gritti 2006-09-25 19:06:31 +02:00
parent d63180c4f4
commit 2ac1bf7302

View File

@ -63,6 +63,9 @@ class Grid:
item.props.height = height - (item.props.line_width - 1) * 2 item.props.height = height - (item.props.line_width - 1) * 2
elif isinstance(item, goocanvas.Text): elif isinstance(item, goocanvas.Text):
item.props.width = width item.props.width = width
elif isinstance(item, goocanvas.Image):
item.props.width = width
item.props.height = height
elif isinstance(item, IconItem): elif isinstance(item, IconItem):
item.props.size = width item.props.size = width