workspace: include the close button overlap in the right side chrome

As we do for the top side; the border is overlaied in the top/right
corner.

https://bugzilla.gnome.org/show_bug.cgi?id=682050
This commit is contained in:
Cosimo Cecchi 2012-12-13 16:39:02 -05:00
parent 5b39496008
commit bc75e5ec44

View File

@ -524,7 +524,8 @@ const WindowOverlay = new Lang.Class({
},
chromeWidths: function () {
return [this.borderSize, this.borderSize];
return [this.borderSize,
Math.max(this.borderSize, this.closeButton.width - this.closeButton._overlap)];
},
relayout: function(animate) {