iconGrid: Fix a typo

It was making icons of the spring animation going/returning to the wrong
position of the dash icon.
This commit is contained in:
Carlos Soriano 2014-09-02 23:24:19 +02:00
parent 9e5704b498
commit db76fb8ff9

View File

@ -519,7 +519,7 @@ const IconGrid = new Lang.Class({
actorClone.set_size(width, height);
let scaleX = sourceScaledWidth / width;
let scaleY = sourceScaledHeight / height;
let [adjustedSourcePositionX, adjustedSourcePositionY] = [sourceCenterX - sourceScaledWidth / 2, sourceY - sourceScaledHeight / 2];
let [adjustedSourcePositionX, adjustedSourcePositionY] = [sourceCenterX - sourceScaledWidth / 2, sourceCenterY - sourceScaledHeight / 2];
// Defeat onComplete anonymous function closure
let isLastItem = index == actors.length - 1;