overviewControls: Factor in margin-bottom for dash startup animation
We set a margin-bottom on the dash to give it some margin towards the monitor edge, we need to factor in this margin when moving it outside of the monitor for our animation. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2191>
This commit is contained in:
parent
ad337a153d
commit
b9abf6fcf5
@ -842,7 +842,7 @@ class ControlsManager extends St.Widget {
|
|||||||
|
|
||||||
// The Dash rises from the bottom. This is the last animation to finish,
|
// The Dash rises from the bottom. This is the last animation to finish,
|
||||||
// so run the callback there.
|
// so run the callback there.
|
||||||
this.dash.translation_y = this.dash.height;
|
this.dash.translation_y = this.dash.height + this.dash.margin_bottom;
|
||||||
this.dash.ease({
|
this.dash.ease({
|
||||||
translation_y: 0,
|
translation_y: 0,
|
||||||
delay: STARTUP_ANIMATION_TIME,
|
delay: STARTUP_ANIMATION_TIME,
|
||||||
|
Loading…
Reference in New Issue
Block a user