workspace: Use the scaled width when calculating the total width
This is a small inconsistency I found in the code after review. https://bugzilla.gnome.org/show_bug.cgi?id=694902
This commit is contained in:
parent
e1ef14d12b
commit
b24a10aa00
@ -815,7 +815,9 @@ const UnalignedLayoutStrategy = new Lang.Class({
|
|||||||
let rows = [];
|
let rows = [];
|
||||||
let totalWidth = 0;
|
let totalWidth = 0;
|
||||||
for (let i = 0; i < windows.length; i++) {
|
for (let i = 0; i < windows.length; i++) {
|
||||||
totalWidth += windows[i].actor.width;
|
let window = windows[i];
|
||||||
|
let s = this._computeWindowScale(window);
|
||||||
|
totalWidth += window.actor.width * s;
|
||||||
}
|
}
|
||||||
|
|
||||||
let idealRowWidth = totalWidth / numRows;
|
let idealRowWidth = totalWidth / numRows;
|
||||||
|
Loading…
Reference in New Issue
Block a user