13
0

add missing Box::set_homogenous() method

This commit is contained in:
Paul Davis 2021-07-21 17:22:35 -06:00
parent e68c60b407
commit 14621f3634

View File

@ -145,6 +145,31 @@ Box::set_margin (double t, double r, double b, double l)
left_margin = last;
}
void
Box::set_homogenous (bool yn)
{
homogenous = yn;
}
void
Box::reset_self ()
{
if (_bounding_box_dirty) {
compute_bounding_box ();
}
if (!_bounding_box) {
self->hide ();
return;
}
Rect r (_bounding_box);
/* XXX need to shrink by margin */
self->set (r);
}
void
Box::reposition_children ()
{