Thread
Forum » Wikidot features and bugs / Bugs and problems » Clicking on Tabview Tab, forces browser to top of page
Started by: Canalguy Canalguy
Date: 31 Mar 2023 13:15
Number of posts: 2
rss icon RSS: New posts
Summary:
When I click on a tab using the Tabview feature, the webpage being displayed by my browser jumps to the top of the webpage.
Clicking on Tabview Tab, forces browser to top of page
Canalguy Canalguy 31 Mar 2023 13:15

I recently discovered the Tabview feature and added it to my page. I like it so I consider it a success.

I ran into one problem. If I scroll down to the bottom of my content on one tab so that the top of my webpage is not showing in my browser and then change tabs, the browser (Chrome and Firefox) jumps to the top of the webpage I'm looking at. This seems to only happen when I've scrolled down the screen a little bit so that the tabs are at the top of the screen. It looks wrong because clicking on a tab should only change the content showing on the screen, not jump to the top of the webpage. Is there a way to stop this?

Here is the page where it happens.

http://oldwellandcanals.wikidot.com/links

I made two images showing the problem.

tabview.jpg
tabview2.jpg
by Canalguy Canalguy , 31 Mar 2023 13:15
Re: Clicking on Tabview Tab, forces browser to top of page
Helmut_pdorf Helmut_pdorf 31 Mar 2023 17:04

The problem for me is not to have the source code viewable.
only my browser tools show me the running CSS (Control+U )

Why not use an "anchor" at the same high like the tabview block ( instead of automatic "page-top" is in the main body ) on some positions in the tabviews as a link to this anchor ?
AS an anchor:
[[# anchor-name]] like [[# tab-top]] and some links to this tabview top as
[#anchor-name text to display] like [#tab-top switch back to tab-line]


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 31 Mar 2023 17:04
/forum/t-15775096/clicking-on-tabview-tab-forces-browser-to-top-of-page#post-