Skip to content

WIP: gtkrevealer: support minimum size of child

Carlos Soriano requested to merge min-size-revealer into gtk-3-24

GtkRevealer always allocates the natural size of the child so the bin_window can take care of the animation with the full allocation of the child.

However when GtkRevealer allocates the child doesn't take into account the minimum size of the child. On the other hand it does take into account the minimum size of the child when reporting the preferred size to the parent of the GtkRevealer. This behaviour clips the child of the GtkRevealer if the parent allocates less than the natural size.

To fix this inconsistency, the patch makes the child adapt the allocation of the GtkRevealer as long as it's not under the minimum size of the child.

Note that it no longer takes into account the animation type to report the child size. I don't think that part is necessary.

Closes #635 (closed)

Edited by Daniel Boles

Merge request reports