lookingGlass: Remove ugly hack

We don't need to hard-code any magic offsets to hide the top corners
and border, we can just not add them in the first place.
This commit is contained in:
Florian Müllner 2015-02-14 16:51:20 +01:00
parent f755e73a48
commit b4c8a00e38
2 changed files with 3 additions and 2 deletions

View File

@ -1199,7 +1199,8 @@ StScrollBar StButton#vhandle:active {
spacing: 4px;
padding: 4px;
border: 2px solid grey;
border-radius: 4px;
border-top-width: 0;
border-radius: 0 0 4px 4px;
}
#LookingGlassDialog > #Toolbar {

View File

@ -1040,7 +1040,7 @@ const LookingGlass = new Lang.Class({
let availableHeight = primary.height - Main.layoutManager.keyboardBox.height;
let myHeight = Math.min(primary.height * 0.7, availableHeight * 0.9);
this.actor.x = primary.x + (primary.width - myWidth) / 2;
this._hiddenY = primary.y + Main.layoutManager.panelBox.height - myHeight - 4; // -4 to hide the top corners
this._hiddenY = primary.y + Main.layoutManager.panelBox.height - myHeight;
this._targetY = this._hiddenY + myHeight;
this.actor.y = this._hiddenY;
this.actor.width = myWidth;