Fix the defintion of setBaseAndExtent.
It was not updating the context object's range as well as its direction.