Prevent invalid frame/child size allocation

This commit is contained in:
Robin Gareus 2021-05-08 14:36:43 +02:00
parent ce1e05fc3d
commit 08092d22b4
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -154,6 +154,10 @@ Frame::on_size_allocate (Allocation& alloc)
child_alloc.set_height (alloc.get_height () - pb_t * 2);
}
if (child_alloc.get_width () < 1 || child_alloc.get_height () < 1) {
return;
}
if (_w) {
_w->size_allocate (child_alloc);
}