mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-07 04:17:00 +00:00
Space.layout: never set a negative width
This commit is contained in:
@@ -290,9 +290,8 @@ class Space extends Array {
|
||||
}
|
||||
}
|
||||
this._inLayout = false;
|
||||
this.cloneContainer.width = x - gap;
|
||||
|
||||
let width = x - gap;
|
||||
let width = Math.max(0, x - gap);
|
||||
this.cloneContainer.width = width;
|
||||
if (width < this.width) {
|
||||
this.targetX = Math.round((this.width - width)/2);
|
||||
|
||||
Reference in New Issue
Block a user