[libadwaita/wip/exalm/tabs-fix] tab-box: Account for adjustment value change on resizes




commit 1e4d3cdca2126c0f26bad8d1d040821dcaa5897d
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Nov 2 12:22:53 2021 +0500

    tab-box: Account for adjustment value change on resizes
    
    Fixes https://gitlab.gnome.org/GNOME/libadwaita/-/issues/308

 src/adw-tab-box.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/adw-tab-box.c b/src/adw-tab-box.c
index cf9a9f0a..596a051a 100644
--- a/src/adw-tab-box.c
+++ b/src/adw-tab-box.c
@@ -2930,6 +2930,9 @@ adw_tab_box_size_allocate (GtkWidget *widget,
                             width * 0.9,
                             width);
 
+  /* The value may have been changed during gtk_adjustment_configure() */
+  value = gtk_adjustment_get_value (self->adjustment);
+
   if (self->context_menu)
     gtk_popover_present (self->context_menu);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]