From ce4ece2c448e4000538a7559146ddec7470df288 Mon Sep 17 00:00:00 2001 From: Andrew Zaech Date: Sat, 10 Apr 2021 13:02:31 +0000 Subject: [PATCH] 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: --- 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 572cee7bf..8139d3f47 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;