workspaceThumbnail: avoid bouncing of the drop placeholder above the first workspace

https://bugzilla.gnome.org/show_bug.cgi?id=664622
This commit is contained in:
Stefano Facchini 2011-11-23 11:00:30 +01:00 committed by Owen W. Taylor
parent ee6bc33cea
commit c63fe5ee24

View File

@ -611,7 +611,11 @@ const ThumbnailsBox = new Lang.Class({
let thumbHeight = this._porthole.height * this._scale;
let workspace = -1;
let firstThumbY = this._thumbnails[0].actor.y;
let firstThumbY;
if (this._dropPlaceholderPos == 0)
firstThumbY = this._dropPlaceholder.y;
else
firstThumbY = this._thumbnails[0].actor.y;
for (let i = 0; i < this._thumbnails.length; i ++) {
let targetBase = firstThumbY + (thumbHeight + spacing) * i;