13
0

canvas: size_allocate() as a way to set position is only for layout-sensitive item trees

This commit is contained in:
Paul Davis 2021-08-01 21:56:33 -06:00
parent a1c67b4ad7
commit 88b95bc8f8

View File

@ -603,8 +603,10 @@ Item::grab_focus ()
void
Item::size_allocate (Rect const & r)
{
_position = Duple (r.x0, r.y0);
size_allocate_children (r);
if (_layout_sensitive) {
_position = Duple (r.x0, r.y0);
size_allocate_children (r);
}
}
void