Takes clientTop in account in getVisibleElements

Cont #2874