Handle image size allocation
This commit is contained in:
parent
d63180c4f4
commit
2ac1bf7302
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user