fix for ignored top offset when scrolling to a dom_id