canvas: size_allocate() as a way to set position is only for layout-sensitive item trees
This commit is contained in:
parent
a1c67b4ad7
commit
88b95bc8f8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user