scrolledwindow: Propagate child measure size whenever possible
authorFina Wilke <code@felinira.net>
Wed, 17 May 2023 22:55:50 +0000 (00:55 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 5 Jun 2023 11:55:20 +0000 (07:55 -0400)
commita8ec2d6b9e31dceb5a977e9537209749f10e1274
treebb6e8ac0c3db38fddf3ca2b8e00a9cb9083a8cb2
parente8869391bbd4437c388a1b7784d63a9374a36d1d
scrolledwindow: Propagate child measure size whenever possible

In height-for-width and hscrollbar-policy = never, we can provide
the child with a proper for_size when measuring it. The same is true for
width-for-height and vscrollbar-policy = never.

This allows for accurately measuring the size of eg. wrapping labels.
gtk/gtkscrolledwindow.c