зеркало из https://github.com/mozilla/pjs.git
Bug 635737 - Zoom animation frame is rotated when we zoom out of a non-top stacked tab [f=ttaubert, r=ian, a=beltzner]
This commit is contained in:
Родитель
b71845500e
Коммит
b8ed74ee0a
|
@ -702,6 +702,11 @@ TabItem.prototype = Utils.extend(new Item(), new Subscribable(), {
|
|||
|
||||
$tab.addClass("front");
|
||||
|
||||
// If we're in a stacked group, make sure we become the
|
||||
// topChild now so that we show the zoom animation correctly.
|
||||
if (this.parent && this.parent.isStacked())
|
||||
this.parent.setTopChild(this);
|
||||
|
||||
let animateZoom = gPrefBranch.getBoolPref("animate_zoom");
|
||||
if (animateZoom) {
|
||||
// The scaleCheat of 2 here is a clever way to speed up the zoom-out
|
||||
|
|
Загрузка…
Ссылка в новой задаче