inputpos-768744: Correctly calculate position
inputpos-768744: Correctly calculate position

Previously we were failing to take into account relatively positioned
elements above GCLI in the tree. This change walks up the tree to find
the correct position

joewalker/gcli,joewalker/gcli,mozilla/gcli,mozilla/gcli,mozilla/gcli