layout: Center correctly

Subtract the last added gap
This commit is contained in:
Tor Hedin Brønner
2018-07-24 18:20:38 +02:00
parent 34fd715b77
commit bad680975c
+1 -1
View File
@@ -234,7 +234,7 @@ class Space extends Array {
this._inLayout = false;
if (x < this.width) {
this.targetX = Math.round((this.width - x)/2);
this.targetX = Math.round((this.width - (x - gap))/2);
}
if (animate) {
Tweener.addTween(this.cloneContainer,