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:
parent
f755e73a48
commit
b4c8a00e38
@ -1199,7 +1199,8 @@ StScrollBar StButton#vhandle:active {
|
|||||||
spacing: 4px;
|
spacing: 4px;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
border: 2px solid grey;
|
border: 2px solid grey;
|
||||||
border-radius: 4px;
|
border-top-width: 0;
|
||||||
|
border-radius: 0 0 4px 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#LookingGlassDialog > #Toolbar {
|
#LookingGlassDialog > #Toolbar {
|
||||||
|
@ -1040,7 +1040,7 @@ const LookingGlass = new Lang.Class({
|
|||||||
let availableHeight = primary.height - Main.layoutManager.keyboardBox.height;
|
let availableHeight = primary.height - Main.layoutManager.keyboardBox.height;
|
||||||
let myHeight = Math.min(primary.height * 0.7, availableHeight * 0.9);
|
let myHeight = Math.min(primary.height * 0.7, availableHeight * 0.9);
|
||||||
this.actor.x = primary.x + (primary.width - myWidth) / 2;
|
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._targetY = this._hiddenY + myHeight;
|
||||||
this.actor.y = this._hiddenY;
|
this.actor.y = this._hiddenY;
|
||||||
this.actor.width = myWidth;
|
this.actor.width = myWidth;
|
||||||
|
Loading…
Reference in New Issue
Block a user