[show-hint addon] Fix broken inside-window-positioning code

Closes #1784