[libadwaita/wip/exalm/clamp-fix-2: 8/8] clamp-layout: Pass for_size when measuring same orientation




commit fd4e6ee213a838ee3b37f085e45c1312f7e432b7
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 16e87251..efc9d3d1 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]