Canvas: child_changed() API fix for Box

This commit is contained in:
Paul Davis 2020-06-10 15:25:22 -06:00
parent fc9840f2a9
commit 84afcb62c4
2 changed files with 3 additions and 3 deletions

View file

@ -265,11 +265,11 @@ Box::add (Item* i)
} }
void void
Box::child_changed () Box::child_changed (bool bbox_changed)
{ {
/* catch visibility and size changes */ /* catch visibility and size changes */
Item::child_changed (); Item::child_changed (bbox_changed);
reposition_children (); reposition_children ();
} }

View file

@ -75,7 +75,7 @@ public:
double top_padding, right_padding, bottom_padding, left_padding; double top_padding, right_padding, bottom_padding, left_padding;
double top_margin, right_margin, bottom_margin, left_margin; double top_margin, right_margin, bottom_margin, left_margin;
void child_changed (); void child_changed (bool bbox_changed);
private: private:
Rectangle *self; Rectangle *self;
bool collapse_on_hide; bool collapse_on_hide;