[library] Rename 'top' argument to 'offset' for correctness
[library] Make local variable final in setSelectionFromOffset()
[library] Fix "too high" correction when in horizontal mode
[library] Use updated coordinates to correct "too low" children