dash: fix for shrinking dash while animating
The this.actor.height > this._maxHeight check is needed because animating the dash out causes constant notify::height signals and so after each one the max height would shrink to the actor height causing the icons to shrink until eventually we get to 16px icons. This way, only increase maxHeight if the actor can be drawn bigger than it is currently set. https://bugzilla.gnome.org/show_bug.cgi?id=682050
This commit is contained in:
parent
afe8198d4b
commit
9491f6bd23
@ -402,6 +402,7 @@ const Dash = new Lang.Class({
|
||||
function() {
|
||||
if (this._maxHeight != this.actor.height)
|
||||
this._queueRedisplay();
|
||||
if (this.actor.height > this._maxHeight)
|
||||
this._maxHeight = this.actor.height;
|
||||
}));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user