[libadwaita/wip/exalm/clamp-fix-2] clamp-layout: Pass for_size when measuring same orientation
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/clamp-fix-2] clamp-layout: Pass for_size when measuring same orientation
- Date: Wed, 2 Feb 2022 13:46:34 +0000 (UTC)
commit d66e3a7ad89411e51c6787dfaa9aa5d73b9119aa
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Feb 2 18:46:24 2022 +0500
clamp-layout: Pass for_size when measuring same orientation
I've officially no idea why, but it fixes the issue.
Fixes https://gitlab.gnome.org/GNOME/libadwaita/-/issues/410
src/adw-clamp-layout.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/adw-clamp-layout.c b/src/adw-clamp-layout.c
index be398f3c..bdf902b0 100644
--- a/src/adw-clamp-layout.c
+++ b/src/adw-clamp-layout.c
@@ -234,7 +234,7 @@ adw_clamp_layout_measure (GtkLayoutManager *manager,
continue;
if (self->orientation == orientation) {
- gtk_widget_measure (child, orientation, -1,
+ gtk_widget_measure (child, orientation, for_size,
&child_min, &child_nat,
&child_min_baseline, &child_nat_baseline);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]