Skip to content

gtkrevealer: support minimum size of child

Carlos Soriano requested to merge revealer-support-min-size-master into master

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.

Closes #635 (closed)

Merge request reports