[gnome-builder] completion: prefer resize to moving X



commit 1d08275b23c67ccb3c2c9204ccd1fd5a01164b42
Author: Christian Hergert <chergert redhat com>
Date:   Sun Jun 10 14:42:47 2018 -0700

    completion: prefer resize to moving X
    
    This will allow us to keep the window alignment and shrink the width which
    is more often than not what we want.
    
    It does have a downside, in that if we're near the edge we might have an
    issue not being visible. But it appears that move_to_rect doesn't really
    allow us to prefer resizing X before sliding X.

 src/libide/completion/ide-completion-window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/completion/ide-completion-window.c b/src/libide/completion/ide-completion-window.c
index 3c09fc6bf..20e65f4bd 100644
--- a/src/libide/completion/ide-completion-window.c
+++ b/src/libide/completion/ide-completion-window.c
@@ -136,7 +136,7 @@ _ide_completion_window_reposition (IdeCompletionWindow *self)
                            &rect,
                            GDK_GRAVITY_SOUTH_WEST,
                            GDK_GRAVITY_NORTH_WEST,
-                           GDK_ANCHOR_FLIP_Y | GDK_ANCHOR_SLIDE_X,
+                           GDK_ANCHOR_FLIP_Y | GDK_ANCHOR_RESIZE_X,
                            -x_offset + EXTRA_SPACE,
                            0);
 


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