Frame: only warn when allocation is smaller than requested size

When using Gtk Box packing and the box has a border-width set
the child widget may get an allocation that is less that than
the requested size.
This commit is contained in:
Robin Gareus 2025-08-27 15:10:53 +02:00
parent 385ff3b3e2
commit a8092c1782
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -145,10 +145,10 @@ Frame::on_size_allocate (Allocation& alloc)
Allocation child_alloc;
if (alloc.get_width () < _min_size.width || alloc.get_height () < _min_size.height) {
#if 0
#ifndef NDEBUG
printf ("Frame::on_size_allocate %dx%d < %dx%d\n", alloc.get_width (), alloc.get_height (), _min_size.width, _min_size.height);
#endif
return;
#endif
}
int pb_l, pb_t;