[ghex] layout-manager: Restore scrollbar



commit c999d4e3c6d6ae20679b75640ac929e5a64d6bd0
Author: Logan Rathbone <poprocks gmail com>
Date:   Fri Dec 10 12:52:07 2021 -0500

    layout-manager: Restore scrollbar
    
    see if we can make it the hover-over-y type...

 src/gtkhex-layout-manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gtkhex-layout-manager.c b/src/gtkhex-layout-manager.c
index 4af40bd..3075f85 100644
--- a/src/gtkhex-layout-manager.c
+++ b/src/gtkhex-layout-manager.c
@@ -306,7 +306,7 @@ gtk_hex_layout_allocate (GtkLayoutManager *layout_manager,
                                break;
 
                        case SCROLLBAR_COLUMN:
-                               scr_alloc.x = width;
+                               scr_alloc.x = width - child_req.width;
                                scr_alloc.width = child_req.width;
                                scr_alloc.height = height;
                                break;


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