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:
Jasper St. Pierre 2013-02-28 16:01:15 -05:00
parent e1ef14d12b
commit b24a10aa00

View File

@ -815,7 +815,9 @@ const UnalignedLayoutStrategy = new Lang.Class({
let rows = [];
let totalWidth = 0;
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;