[gnome-shell] util: Use fade_margins in ensureActorVisibleInScrollView function



commit ce4ece2c448e4000538a7559146ddec7470df288
Author: Andrew Zaech <azaech021 gmail com>
Date:   Sat Apr 10 13:02:31 2021 +0000

    util: Use fade_margins in ensureActorVisibleInScrollView function
    
    Commit f60a469a34 removed vfade_offset in favor of fade_margins.
    Util.ensureActorVisibleInScrollView function needs to be adjusted
    accordingly.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4080
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1802>

 js/misc/util.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/misc/util.js b/js/misc/util.js
index 572cee7bf5..8139d3f47c 100644
--- a/js/misc/util.js
+++ b/js/misc/util.js
@@ -370,7 +370,7 @@ function ensureActorVisibleInScrollView(scrollView, actor) {
     let offset = 0;
     let vfade = scrollView.get_effect("fade");
     if (vfade)
-        offset = vfade.vfade_offset;
+        offset = vfade.fade_margins.top;
 
     let box = actor.get_allocation_box();
     let y1 = box.y1, y2 = box.y2;


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