13
0

Canvas: mark constraint-layout containers as layout-sensitive (like their children)

This commit is contained in:
Paul Davis 2020-06-24 18:12:23 -06:00
parent f5d67e6520
commit 2598bdef2c

View File

@ -45,6 +45,7 @@ ConstraintPacker::ConstraintPacker (Canvas* canvas)
{ {
set_fill (false); set_fill (false);
set_outline (false); set_outline (false);
set_layout_sensitive (true);
} }
ConstraintPacker::ConstraintPacker (Item* parent) ConstraintPacker::ConstraintPacker (Item* parent)
@ -55,11 +56,13 @@ ConstraintPacker::ConstraintPacker (Item* parent)
{ {
set_fill (false); set_fill (false);
set_outline (false); set_outline (false);
set_layout_sensitive (true);
} }
void void
ConstraintPacker::compute_bounding_box () const ConstraintPacker::compute_bounding_box () const
{ {
cerr << whoami() << " CBB from " << _allocation << endl;
_bounding_box = _allocation; _bounding_box = _allocation;
_bounding_box_dirty = false; _bounding_box_dirty = false;
} }