From 88b95bc8f8e029312850338d4a46759275151ee2 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 1 Aug 2021 21:56:33 -0600 Subject: [PATCH] canvas: size_allocate() as a way to set position is only for layout-sensitive item trees --- libs/canvas/item.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/canvas/item.cc b/libs/canvas/item.cc index 2be5c3dd34..fe9293bf56 100644 --- a/libs/canvas/item.cc +++ b/libs/canvas/item.cc @@ -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