Fixed #414.
 - use offset instead of position.
 - http://stackoverflow.com/questions/3202008/jquery-difference-between-position-and-offset