panel: Include panel corners in startup animation
Commit b1654af406
moved the panel positioning (and thus that of its
corners) before the panel startup animation. As the panel corners now
are mapped while the panel animation is active, the initial style-changed
signal which triggers another repositioning is received after the
initial layout and the corners end up at wrong positions.
To fix, animate the corner positions as well during the startup
animation - if anyone could actually see the animation, the corners
should animate with the panel anyway ...
https://bugzilla.gnome.org/show_bug.cgi?id=643804
This commit is contained in:
parent
6fbf8fa9e4
commit
d6e29be980
@ -1051,6 +1051,20 @@ Panel.prototype = {
|
|||||||
time: STARTUP_ANIMATION_TIME,
|
time: STARTUP_ANIMATION_TIME,
|
||||||
transition: 'easeOutQuad'
|
transition: 'easeOutQuad'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let oldCornerY = this._leftCorner.actor.y;
|
||||||
|
this._leftCorner.actor.y = oldCornerY - this.actor.height;
|
||||||
|
this._rightCorner.actor.y = oldCornerY - this.actor.height;
|
||||||
|
Tweener.addTween(this._leftCorner.actor,
|
||||||
|
{ y: oldCornerY,
|
||||||
|
time: STARTUP_ANIMATION_TIME,
|
||||||
|
transition: 'easeOutQuad'
|
||||||
|
});
|
||||||
|
Tweener.addTween(this._rightCorner.actor,
|
||||||
|
{ y: oldCornerY,
|
||||||
|
time: STARTUP_ANIMATION_TIME,
|
||||||
|
transition: 'easeOutQuad'
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
relayout: function() {
|
relayout: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user