When does a monster spawner activate in minecraft?
To test this, I built a tower over some spawners and stayed directly over them about 15-20 blocks higher than they are.
As you can see, the flames have disappeared (and the spawners quit spinning, but you can't tell that from a picture), indicating that they are no longer spawning, despite me being directly over them.
So yes, it does take into account vertical distance.