fixed Rectangle.amountToTranslateWithin()