mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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>
This commit is contained in:
parent
53dd291aba
commit
ce4ece2c44
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue