Welcome to the forum.
Are you saying that when the dropdown is not expanded, the
whole content of the target topic is displayed? If so the bookmark
for the target topic will still be displayed and such of the
content as fits below it. If you are wanting the page to scroll up
to show the whole of the content, you would need to amend the
javascript to scroll so that the bookmark goes to the top of the
page. Currently it is only intended to expand the dropdown, nothing
more.
Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.