lookingGlass: put this in the chrome layer
Looking Glass is supposed to slide out from underneath the panel. Rather than fiddling with Main.chrome.actor directly, just add the lg actor to the chrome, and fix its stacking there. https://bugzilla.gnome.org/show_bug.cgi?id=655813
This commit is contained in:
parent
446910cb10
commit
bcd307066a
@ -750,7 +750,9 @@ LookingGlass.prototype = {
|
|||||||
Lang.bind(this, this._updateFont));
|
Lang.bind(this, this._updateFont));
|
||||||
this._updateFont();
|
this._updateFont();
|
||||||
|
|
||||||
Main.uiGroup.add_actor(this.actor);
|
// we add it to the chrome because we want it to appear to slide
|
||||||
|
// out from underneath the panel
|
||||||
|
Main.chrome.addActor(this.actor);
|
||||||
|
|
||||||
this._objInspector = new ObjInspector();
|
this._objInspector = new ObjInspector();
|
||||||
Main.uiGroup.add_actor(this._objInspector.actor);
|
Main.uiGroup.add_actor(this._objInspector.actor);
|
||||||
@ -961,7 +963,7 @@ LookingGlass.prototype = {
|
|||||||
|
|
||||||
this._notebook.selectIndex(0);
|
this._notebook.selectIndex(0);
|
||||||
this.actor.show();
|
this.actor.show();
|
||||||
this.actor.lower(Main.chrome.actor);
|
this.actor.lower_bottom();
|
||||||
this._open = true;
|
this._open = true;
|
||||||
this._history.lastItem();
|
this._history.lastItem();
|
||||||
|
|
||||||
@ -992,6 +994,7 @@ LookingGlass.prototype = {
|
|||||||
|
|
||||||
Main.popModal(this._entry);
|
Main.popModal(this._entry);
|
||||||
|
|
||||||
|
this.actor.lower_bottom();
|
||||||
Tweener.addTween(this.actor, { time: 0.5 / St.get_slow_down_factor(),
|
Tweener.addTween(this.actor, { time: 0.5 / St.get_slow_down_factor(),
|
||||||
transition: 'easeOutQuad',
|
transition: 'easeOutQuad',
|
||||||
y: this._hiddenY,
|
y: this._hiddenY,
|
||||||
|
Loading…
Reference in New Issue
Block a user